geepillow.colors#
Module to handle colors.
Attributes#
Classes#
Color class to handle colors. |
Functions#
|
Create a Color from a string. |
|
Color dispatcher. |
Module Contents#
- class geepillow.colors.Color(red, green, blue)[source]#
Color class to handle colors.
- Parameters:
red (int)
green (int)
blue (int)
- classmethod from_hex(hex_color)[source]#
Create a color instance from hex.
- Parameters:
hex_color (str)
- geepillow.colors.color_from_string(string)[source]#
Create a Color from a string.
Accepts some common name like ‘red’ and if not in the common list, it will treat it as an hex color string.
- Parameters:
string (str)
- Return type: