<static> getRGB(color) → {object}
Return the component parts of a color as an Object with the properties alpha, red, green, blue.
Alpha will only be set if it exist in the given color (0xAARRGGBB)
Parameters
Name | Type | Description |
---|---|---|
color | number | Color in RGB (0xRRGGBB) or ARGB format (0xAARRGGBB). |
Returns
object -
An Object with properties: alpha, red, green, blue (also r, g, b and a). Alpha will only be present if a color value > 16777215 was given.
- Source code: utils/Color.js (Line 866)
Please login to continue.