- rgb
Creates a packed integer color from three RGB values in the range [0, 255].
- argb
Creates a packed integer color from four ARGB values in the range [0, 255].
- alpha
Extracts the alpha, in range [0, 255], from the given packed color.
- blue
Extracts the blue component, in range [0, 255], from the given packed color.
- decodeUpper
Decodes and returns the upper color value in a two color value encoded by
#encode.
- encode
Encodes two [0..1] color values into the format used by the standard shader
program. The standard sh
- green
Extracts the green component, in range [0, 255], from the given packed color.
- red
Extracts the red component, in range [0, 255], from the given packed color.
- withAlpha
Returns a new color that's a copy of the given color, but with the new alpha
value, in range [0, 255