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]
Readonly
alphaAlpha channel transparency [0, 100]
Readonly
blueBlue channel intensity [0, 255]
Readonly
greenGreen channel intensity [0, 255]
Readonly
redRed channel intensity [0, 255]
Return the most contrasting color for text on a background of this color.
Black or white
Static
fromCreate 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
Structure for storing colors based on RGBa values.