Skip to main content

Module colors

Module colors 

Source

Functions§

get_indexed_color
hex_to_rgb
hex_with_tint_to_rgb
Applies the OOXML §18.8.3 tint algorithm to a hex color string. Positive tint lightens, negative tint darkens. Returns the hex string unchanged if tint is 0.
hsl_to_rgb
rgb_to_hex
rgb_to_hsl