Colors Functions
Last updated
Was this helpful?
Last updated
Was this helpful?
Available functions:
ColorManager.__init__()
: Initializes the ColorManager with a predefined list of colors.
ColorManager.
(hex_value)
: Converts a hex color code to an RGB tuple.
ColorManager.
(r, g, b)
: Converts RGB values to a hex color code.
ColorManager.
(hex_value)
: Finds the closest named color to the given hex value.
ColorManager.
(name)
: Returns the hex and RGB values of a color based on its name.
Converts a hex color code to an RGB tuple.
Converts RGB values to a hex color code.
Finds the closest named color to the given hex value.
Returns the hex and RGB values of a color based on its name.