colors.parser

Implement CSS color parsing, like specified. This uses the functions defined elsewhere in colors.

Members

Functions

color
Color color(const(char)[] cssColorString)

Parses a CSS color string, and gives back a Color. If parsing fails, return transparent black.

convertStringToDouble
double convertStringToDouble(const(char)* s, bool mustConsumeEntireInput, bool* err)
Undocumented in source. Be warned that the author may not have intended to support it.
parseCSSColor
bool parseCSSColor(const(char)[] cssColorString, Color outColor, string error)

Parses a CSS color string, and gives back a Color.

Meta