Build from CSS color string.
Build from a 8-bit sRGB quadruplet.
Build from a 16-bit sRGB quadruplet.
Build from a 32-bit float sRGB quadruplet.
Unsafe cast of colorspace. Normally you never need this.
Get colorspace tag. This is the tag of this tagged union.
A 32-bit float normalized tristimulus sRGB color, with alpha.
The Color type is a tagged union that can hold one color in a CSS-defined colorspace. This correspond to both "specified", "computed", and "used" colors in CSS specification. In typical use, you'll want to map to sRGB 32-bit RGBA quadruplet, and the function for this is called: toRGBA8(). Reference: https://www.w3.org/TR/css-color-4/