ColorToHSL
From SCAR Divi Manual
Definition
procedure ColortoHSL(C: Integer; var H, S, L: Extended);
Availability
SCAR Divi 3.00 > Current
Description
Converts a given color value C to HSL values and returns them in H, S and L. The components can be joined back together into a color value using HSLtoColor.
Example
var h, s, l: Extended; begin ColorToHSL(123456, h, s, l); WriteLn(FloatToStr(h) + ';' + FloatToStr(s) + ';' + FloatToStr(l)); end.
Output:
28,6666661500931;99,1189420223236;44,5098042488098