enaml.colors

Functions

parse_color Parse a CSS3 color string into a tuple of RGBA values.

Classes

Color
ColorMember An Atom member class which coerces a value to a color.
enaml.colors.parse_color(color)[source]

Parse a CSS3 color string into a tuple of RGBA values.

Parameters :

color : string

A CSS3 string representation of the color.

Returns :

result : Color or None

A color object representing the parsed color. If the string is invalid, None will be returned.

class enaml.colors.Color

Bases: object

static __new__(S, ...) → a new object with type S, a subtype of T
__repr__() <==> repr(x)
alpha

Get the alpha value for the color.

argb

Get the color as an #AARRGGBB unsigned long.

blue

Get the blue value for the color.

green

Get the green value for the color.

red

Get the red value for the color.