Function parseSRgba8Hex
Parses #RRGGBBAA and returns a typed public failure when parsing fails.
error_d .Result!(color.storage.SRgba8,color.storage.ColorParseError) parseSRgba8Hex(
scope const(char)[] text
) pure nothrow @nogc @safe;
Example
SRgba8 value = SRgba8 .init;
assert(tryParseSRgba8Hex(
"#12AbF080",
value
));
assert(value == SRgba8(
0x12,
0xAB,
0xF0,
0x80
));
const hex = value .toHex();
assert(hex[] == "#12abf080");