nider.colors package¶
Submodules¶
nider.colors.utils module¶
-
nider.colors.utils.
blend
(first, second, coefficient=0.5)[source]¶ Adds two colors
Adds two colors with use of coefficient to determine which color has more power
-
nider.colors.utils.
coefficient
¶ float – a 0 <= number <= 1 number that defines power of the first color
Returns: rgb color - result of the blending -
-
nider.colors.utils.
get_img_dominant_color
(img_path)[source]¶ Finds img dominant color
Using colorthief module finds image dominant color
-
nider.colors.utils.
img_path
¶ str – path to an image to get a dominant color for
Returns: Dominant rgb color for provided image -
-
nider.colors.utils.
monochrome_color
(color, invert=False)[source]¶ Generates a monochrome(black or white) color
Generates a monochrome version of a color for a provided color
-
nider.colors.utils.
color
¶ tuple(int, int, int) – Color to generate a monochrome one for
Returns: Monochrome rgb color that can be either black or white -