Define a new color from RGBa values.
Red channel intensity [0, 255]
Green channel intensity [0, 255]
Blue channel intensity [0, 255]
Alpha channel transparency [0, 100]
ReadonlyalphaAlpha channel transparency [0, 100]
ReadonlyblueBlue channel intensity [0, 255]
ReadonlygreenGreen channel intensity [0, 255]
ReadonlyhueColor hue, in degrees [0, 360)
ReadonlylightnessLightness percent [0, 100]
ReadonlyredRed channel intensity [0, 255]
ReadonlysaturationSaturation percent [0, 100]
Return the most contrasting color for text on a background of this color.
Black or white
StatichexCreate a new color given a hexadecimal string. Will throw an error if the string is invalid.
Hexadecimal string
A new color defined by the hexadecimal string
StatichslThe color hue, in degrees [0, 360)
The saturation percent [0, 100]
The lightness percent [0, 100]
Alpha channel intensity [0, 100]
A new color defined by hue, sautration, and lightness
StaticrgbDefine a new color from RGBa values. Alias for new Color(...)
Red channel intensity [0, 255]
Green channel intensity [0, 255]
Blue channel intensity [0, 255]
Alpha channel transparency [0, 100]
A new color defined by color channel intensity values
Structure for storing colors based on RGBa values.