ColorRGBa
A generic RGB color space capable of representing both the linear and the sRGB color spaces.
Parameters
red as a percentage between 0.0 and 1.0
green as a percentage between 0.0 and 1.0
blue as a percentage between 0.0 and 1.0
alpha as a percentage between 0.0 and 1.0
See also
Constructors
Types
Properties
Returns a new instance of ColorRGBa where the red, green, and blue components are multiplied by the alpha value of the original color. The alpha value and linearity remain unchanged.
calculate luminance value luminance value is according to https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
Functions
calculate the contrast value between this color and the given color contrast value is accordingo to // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef
Converts this color to the specified linearity.