The Predefined Color Spaces. For now, no custom space.
A 32-bit float Hue Saturation Luminance space that is based-upon sRGB. "hsl" in CSS. Warning: h is in a degrees modulo space (0 to 360) s, l and a have a range 0 to 1. All can be float.nan ("none" in CSS).
A 8-bit luminance sRGB value.
A 8-bit luminance sRGB value, with alpha.
A 16-bit tristimulus sRGB color. TODO: rgb16 convenience function to create one such color.
A 8-bit tristimulus sRGB color. TODO: rgb8 convenience function to create one such color.
A 16-bit tristimulus sRGB color, with alpha. This is the most common encoding, and is here to avoid needless conversion for this case. TODO: rgba16 convenience function to create one such color.
A 8-bit tristimulus sRGB color, with alpha. This is the most common encoding, and is here to avoid needless conversion for this case. TODO: rgba8 convenience function to create one such color.
A 32-bit float tristimulus sRGB color, with alpha. This is the most common encoding, and is here to avoid needless conversion for this case. This is what most CSS functions resolve to, because of precision needs. Warning: r, g and b have a range 0 to 1, unlike in CSS. but a has a range 0 to 1. All can be float.nan ("none" in CSS).
This module defines "standard" colorspace compatible with typical D library with implicit sRGB and then adds colorspace as defined by CSS.