Color module
- Color.HEX(color: str)
Convert a string color value into RGB tuple value.
- Parameters:
color (str) – The color value in hex format, prefixed with a #. Example: #FF0000
- Returns:
color – The color value as a tuple in rgb format. Example: (255, 0, 0)
- Return type:
tuple
- Color.RGB(r: int, g: int, b: int)
Convert a rgb color value into a RGB tuple value.
- Parameters:
r (int) – The color’s red channel value. The value must be between 0 and 255.
g (int) – The color’s green channel value. The value must be between 0 and 255.
b (int) – The color’s blue channel value. The value must be between 0 and 255.
- Returns:
color – The color value as a tuple in rgb format. Example: (255, 0, 0)
- Return type:
tuple