Copy the color
color copy
Get the alpha color as an integer
alpha integer color inclusively between 0 and 255
Get the alpha color as an arithmetic float
alpha float color inclusively between 0.0 and 1.0
Get the alpha color in hex
alpha hex color in format AA
Get the alpha color in hex, shorthand when possible
alpha hex color in format A or AA
Get the blue color as an integer
blue integer color inclusively between 0 and 255
Get the blue color as an arithmetic float
blue float color inclusively between 0.0 and 1.0
Get the blue color in hex
blue hex color in format BB
Get the blue color in hex, shorthand when possible
blue hex color in format B or BB
Get the color as an integer
integer color
Get the color as a hex string
hex color in the format #RRGGBB
Get the color as a hex string, shorthanded when possible
hex color in the format #RGB or #RRGGBB
Get the color as a hex string with alpha, shorthanded when possible
hex color in the format #ARGB or #AARRGGBB
Get the color as a hex string with alpha
hex color in the format #AARRGGBB
Get the color as an integer including the alpha
integer color
Get the green color as an integer
green integer color inclusively between 0 and 255
Get the green color as an arithmetic float
green float color inclusively between 0.0 and 1.0
Get the green color in hex
green hex color in format GG
Get the green color in hex, shorthand when possible
green hex color in format G or GG
Get the HSL (hue, saturation, lightness) values
HSL array where: 0 = hue, 1 = saturation, 2 = lightness
Get the HSL hue value
hue value
Get the HSL lightness value
lightness value
Get the opacity as an arithmetic float
opacity float inclusively between 0.0 and 1.0
Get the red color as an integer
red integer color inclusively between 0 and 255
Get the red color as an arithmetic float
red float color inclusively between 0.0 and 1.0
Get the red color in hex
red hex color in format RR
Get the red color in hex, shorthand when possible
red hex color in format R or RR
Get the HSL saturation value
saturation value
Check if the color is opaque (opacity or alpha of 1.0, 255, or x00)
true if opaque
Set the alpha color as an arithmetic float or hex
alpha float color inclusively between 0.0 and 1.0 or hex color in format AA or A
Set the blue color as an integer or hex
blue integer color inclusively between 0 and 255 or in format BB or B
Set the color as a single integer or Set the color in hex
color integer or hex color in format #RRGGBB, RRGGBB, #RGB, RGB, #AARRGGBB,
AARRGGBB, #ARGB, or ARGB
Set the color with HSLA (hue, saturation, lightness, alpha) values
hue value inclusively between 0.0 and 360.0
saturation inclusively between 0.0 and 1.0
lightness inclusively between 0.0 and 1.0
alpha inclusively between 0.0 and 1.0
Set the green color as an integer orr hex
green integer color inclusively between 0 and 255 or in format GG or G
Set the opacity as an arithmetic float
opacity float color inclusively between 0.0 and 1.0
Set the red color as an integer or hex
red integer color inclusively between 0 and 255 or red hex color in format RR or R
Create a black color
color
Create a blue color
color
Create a brown color
color
Create the color in hex
hex color in format #RRGGBB, RRGGBB, #RGB, RGB, #AARRGGBB,
AARRGGBB, #ARGB, or ARGB
color
Create a cyan color
color
Create a dark gray color
color
Create a gray color
color
Create a green color
color
Create a light gray color
color
Create a magenta color
color
Create an orange color
color
Create a pink color
color
Create a purple color
color
Create a red color
color
Create a violet color
color
Create a white color
color
Create a yellow color
color
Generated using TypeDoc
Color representation with support for hex, RBG, arithmetic RBG, HSL, and integer colors
osbornb