Represents a color in RGBA8888 format with underlying type Int.
staticread onlya:Int
Alpha color component.
staticread onlyb:Int
Blue color component.
staticread onlyg:Int
Green color component.
staticread onlyr:Int
Red color component.
staticinline create (red:Int, green:Int, blue:Int, alpha:Int):Rgba
Creates a new color.
Parameters:
red
The red component (0-255).
green
The green component (0-255).
blue
The blue component (0-255).
alpha
The alpha component (0-255).
Returns:
The new color value in RGBA8888 format.
staticinline fromInt (rgba:Int):Rgba
Converts an integer to a RGBA8888 color.
rgba
The integer to convert to the color.
The RGBA color.