Main color functions

color() colour()

Turn vector to color vector

is_color()

Test if the object is a color

Saturation

clr_saturate()

Make a color more saturated

clr_desaturate()

Make a color more desaturated

Lightness

clr_lighten()

Make a color more light

clr_darken()

Make a color more dark

Greyscale

clr_grayscale() clr_greyscale()

Transform colors to greyscale

Negation

clr_negate()

Negates colors in RGB space

Mixing

clr_mix()

Mixes a color into

Rotate in RGB

clr_rotate()

Rotate the colors around the hue wheel

Tranparency

clr_alpha()

Sets alpha in color

Modify HCL

modify_hcl()

Modify Individual HCL Axes

Color blindness approximations

clr_protan() clr_deutan() clr_tritan()

Simulate color vision deficiency

check_color_blindness()

Visualize color vision deficiency

Color Contrast

best_contrast()

Find highest contrast color

contrast_ratio()

Contrast Ratio Between Colors

Extract Components

clr_extract_red() clr_extract_green() clr_extract_blue() clr_extract_alpha()

Extract RGB components

clr_extract_hue() clr_extract_saturation() clr_extract_lightness() clr_extract_luminance()

Extract HSL components

clr_extract_chroma()

Extract HCL components

clr_extract()

Extract Multiple Components