HSLToRGB
From SCAR Divi Manual
Definition
procedure HSLToRGB(H, S, L: Extended; var R, G, B: Integer);
Availability
SCAR Divi 3.00 > Current
Description
Converts HSL values specified by H, S and L to a RGB color values and returns them in R, G and B. The result can be converted back to RGB values using RGBToHSL.
Example
var r, g, b: Integer; begin HSLToRGB(25, 50, 75, r, g, b) WriteLn(IntToStr(r) + ';' + IntToStr(g) + ';' + IntToStr(b)); end.
Output:
191;223;159