vector ctransform(string fromspace, string tospace, vector clr)
vector ctransform(string tospace, vector clr)
If you don’t give a fromspace, assumes
Transforms color tuple clr from one color space to another.
The possible arguments for fromspace and tospace are
The hue-based systems are normalized with the hue going from
1. LAB and TMI are not normalized.
"cspace:rgb", the primaries are assumed to be in linear NTSC space (gamma 1.0), using C reference white.
C reference white is used for conversion when converting from XYZ to LAB space (and vice versa).