Colour constructor
const
Colour(
- int value
Creates a colour from a 32-bit 0xAARRGGBB number, like Color.
const Colour(0xFF2196F3) // opaque blue
Implementation
const Colour(int value)
: alpha = (value >> 24) & 0xFF,
red = (value >> 16) & 0xFF,
green = (value >> 8) & 0xFF,
blue = value & 0xFF;