Common types
- class ColorRgb(r, g, b)
RGB color (from
0.0to1.0). This is equivalent to(r, g, b)tuple.RGB color (from
0.0to1.0). This is equivalent to(r, g, b)tuple.- classmethod from_hex(hex_str)
Transform hexadecimal string to corresponding RGB color (from
0.0to1.0)- Parameters
hex_str -- String (Format:
#FFFF00which need to be converted to RGB color- Raises
ValueError -- If character
#is missing at the beginning of the hexadecimal string.
- class ColorLab(l, a, b)
Lab color. This is equivalent to
(l, a, b)tuple.