decodeCSSColor

Undocumented in source. Be warned that the author may not have intended to support it.
@safe
uint
decodeCSSColor
(
string s
,
uint defValue = 0
)

Examples

assert(decodeCSSColor("gray") == Color.gray);
assert(decodeCSSColor("#AABBCC80") == 0x80AABBCC);

Meta