Color.fromRGB

Converts an rgb-encoded integer to a Color.

class Color
static pure nothrow @safe
fromRGB
(
uint c
)

Examples

assert(Color.fromRGB(0x0000FF).blue == 255);
assert(Color.fromRGB(0x111111).green == 17);

Meta