Construct a color from RGB and optional alpha values.
Construct a color from a luminance and optional alpha value.
Construct a color from a hex string.
Type of the color components.
Return the RGB tristimulus values as a tuple. These will always be ordered (R, G, B). Any color channels not present will be 0.
Return the RGB tristimulus values + alpha as a tuple. These will always be ordered (R, G, B, A).
The color space specified.
The color components that were specified.
If the color has alpha.
Test if a particular component is present.
If the color is stored linearly (without gamma applied).
Type for the color channels. May be a basic integer or floating point type.
Color is stored with linear luminance.
Color will be within the specified color space.
An RGB color, parameterised with components, component type, and color space specification.