toInt32 property
int
get
toInt32
A 32 bit value representing this color.
The bits are assigned as follows:
- Bits 24-31 are the alpha value.
- Bits 16-23 are the red value.
- Bits 8-15 are the green value.
- Bits 0-7 are the blue value.
Implementation
int get toInt32 {
return alpha << 24 |
red << 16 |
green << 8 |
blue << 0;
}