Creates a new instance of Color from an r, g, b, a
The red component of color (0-255)
The green component of color (0-255)
The blue component of color (0-255)
Optional
a: numberThe alpha component of color (0-1.0)
Alpha channel (between 0 and 1)
Blue channel
Green channel
Hue
Lightness
Red channel
Saturation
Static
AzureStatic
BlackStatic
BlueStatic
ChartreuseStatic
CyanStatic
DarkStatic
ExcaliburStatic
GrayStatic
GreenStatic
LightStatic
MagentaStatic
OrangeStatic
RedStatic
RoseStatic
TransparentStatic
VermilionStatic
VioletStatic
ViridianStatic
WhiteStatic
YellowStatic
fromHSLStatic
fromStatic
fromRGBCreates a new instance of Color from an r, g, b, a
The red component of color (0-255)
The green component of color (0-255)
The blue component of color (0-255)
Optional
a: numberThe alpha component of color (0-1.0)
Static
fromRGBString
Provides standard colors (e.g. Color.Black) but you can also create custom colors using RGB, HSL, or Hex. Also provides useful color operations like Color.lighten, Color.darken, and more.