color.Color

class color.Color(red: float, green: float, blue: float)

A class that holds the RGB values for a color as floats from 0 to 1. Default colors are included matching the HTML 4.01 specification.

property black

#000000

property silver

#c0c0c0

property gray

#808080

property white

#ffffff

property maroon

#800000

property red

The red component of the color

property purple

#800080

property fuchsia

#ff00ff

property green

The green component of the color

property lime

#00ff00

property olive

#808000

property yellow

#ffff00

property navy

#000080

property blue

The blue component of the color

property teal

#008080

property aqua

#00ffff

static parse(hex_code: str) Optional[color.Color]

Returns the color corresponding to hex_code. hex_code should be in the form “#RRGGBB” where red would be #ff0000. hex_code can also be supplied as a preset color name matching one of the color properties in Color.