beacon_aug/external/textflow/effects.py
def complement(self, rgb_color):
        """
        return a color which is complementary to the RGB_COLOR.
        """
        col_hsv = np.squeeze(cv2.cvtColor(rgb_color[None, None, :], cv2.COLOR_RGB2HSV))
        col_hsv[0] = col_hsv[0] + 128  # uint8 mods to 255
        col_comp = np.squeeze(cv2.cvtColor(col_hsv[None, None, :], cv2.COLOR_HSV2RGB))
        return col_comp

        return a color which is complementary to the RGB_COLOR.
        
return a color which is complementary to the RGB_COLOR.
return a color which is complementary to the RGB_COLOR .
def complement(self, rgb_color):
        col_hsv = np.squeeze(cv2.cvtColor(rgb_color[None, None, :], cv2.COLOR_RGB2HSV))
        col_hsv[0] = col_hsv[0] + 128  
        col_comp = np.squeeze(cv2.cvtColor(col_hsv[None, None, :], cv2.COLOR_HSV2RGB))
        return col_comp
def complement ( self , rgb_color ) : col_hsv = np . squeeze ( cv2 . cvtColor ( rgb_color [ None , None , : ] , cv2 . COLOR_RGB2HSV ) ) col_hsv [ 0 ] = col_hsv [ 0 ] + 128 col_comp = np . squeeze ( cv2 . cvtColor ( col_hsv [ None , None , : ] , cv2 . COLOR_HSV2RGB ) ) return col_comp
return a color which is complementary to the RGB_COLOR.
return a color which is complementary to the RGB_COLOR .
"""
        return a color which is complementary to the RGB_COLOR.
        """ # uint8 mods to 255
self
rgb_color