Color.from_name

classmethod Color.from_name(name)

Construct a color from a name in the extended color table of HTML/CSS/SVG.

Parameters

name (str) – The color name. The name is case-insensitive.

Returns

compas.colors.Color

See also

https

//www.w3.org/TR/css-color-3/#svg-color