Crate colorskill

Source

Structs§

RGB

Functions§

change_color_lightness
Turns a color darker or lighter.
check_color_name
Checks if a color name exists.
color_name_to_rgb
Gets an RGB tuple from a color name.
color_to_string
Converts an RGB tuple into a comma separated string.
color_to_string_2
Converts an RGB tuple into a comma separated string with spaces after commas.
color_to_string_3
Converts an RGB tuple into a comma separated string with added parenthesis.
color_to_string_4
Converts an RGB tuple into a comma separated string with added parenthesis and spaces after commas.
get_color_hue
Converts the RGB to a HSL and returns the hue value.
get_color_lightness
Converts the RGB to a HSL and returns the lightness value.
get_color_saturation
Converts the RGB to a HSL and returns the saturation value.
make_color_darker
Wrapper function to make a color darker.
make_color_lighter
Wrapper function to make a color lighter.
parse_color
Parses a color string.
random_color
Generates a random RGB tuple.