Converting Hue Sat and Lum to R G B and back

Blitz3D Forums/Blitz3D Beginners Area/Converting Hue Sat and Lum to R G B and back

PoliteProgrammer(Posted 2007) [#1]
Hi. Can anyone provide me with an explanation of how to convert between rgb and hue sat lum colour values?

Really, I would like to know how they are related mathematically.

Thanks


jfk EO-11110(Posted 2007) [#2]
There's an example in the archives. Basicly, the imbalance between rgb gives the saturation, the relation from r to b and r to g gives the hue and (r+g+b)/3 is the lum aka brightness.