parseColor

Recognizes a hex format string, converting it to RGBA representation as a Color!ubyte structure.

@safe nothrow pure
parseColor
(
int format = PixelFormat.Auto
C = ubyte
T
)
(
T hex
)

Parameters

hex T

The same performance. The following formats can be used: * 0xRRGGBBAA / 0xRRGGBB * #RRGGBBAA / #RRGGBB

format

Pixel format.

Return Value

Type: Color!C

Color!ubyte

Meta