matthewplotlib.colors
Accept and standardise RGB triples in any of the following 'color like' formats:
Named colours: The following strings are recognised and translated to RGB triples:
"black","red","green","blue","cyan","magenta","yellow","white".Hexadecimal: A hexadecimal string like
"#ff0000"specifying the RGB values in the usual manner.Short hexadecimal: A three-character hexadecimal string like
"#f00", where"#RGB"is equivalent to"#RRGGBB"in the usual hexadecimal format.Integer triple: An array or tuple of three integers in the range 0 to 255, converted directly to an RGB triple.
Float triple: An array or tuple of three floats in the range 0.0 to 1.0, converted to an RGB triple by multiplying by 255 and rounding down to the nearest integer.
(Arrays or tuples with mixed integers and floats are promoted by NumPy to become float triples.)