Crate named_colors

Source

Modules§

colors
errors

Functions§

get_color_by_name
Retrieves the RGB values of a color by its name from the provided color map. This function is used to avoid loading colors repeatedly for each request. It returns a tuple (r, g, b) if the color is found, otherwise None.