Hi!
I´ve probably found a small bug, but I´m not quite sure.
This ismy little test-code:
H = GetHValue(MakeRGBA(255,0,255));
S = GetSValue(MakeRGBA(255,0,255));
L = GetLValue(MakeRGBA(255,0,255));
Game.Msg("H: "+H); Sleep(200);
Game.Msg("S: "+S);Sleep(200);
Game.Msg("L: "+L);Sleep(200);
RGB (255,0,255) is a light pink color. If I look at the ambient light picker (in the scene editor) that calculates the HSL for a RGB color I get the following HSL : 213, 255, 128
My little test program results: 212, 255, 127