Difference between revisions of "ColorToHSL"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure ColortoHSL(C: Integer; var H, S, L: Extended); </source> ==Availability== SCAR Divi 3.00 > Current ==Description== C...") |
(No difference)
|
Revision as of 10:02, 5 July 2011
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