Color.fromRGB

Converts an rgb-encoded integer to a Color.

Examples

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

Meta