HSLToXYZ

From SCAR Divi Manual
Revision as of 18:21, 5 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure HSLToXYZ(H, S, L: Extended; var X, Y, Z: Extended); </source> ==Availability== SCAR Divi 3.00 > Current ==Descriptio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure HSLToXYZ(H, S, L: Extended; var X, Y, Z: Extended);

Availability

SCAR Divi 3.00 > Current

Description

Converts HSL values specified by H, S and L to XYZ color values and returns them in X, Y and Z. The result can be converted back to HSL values using XYZToHSL.

Example

var
  x, y, z: Extended;

begin
  HSLToXYZ(25, 50, 75, x, y, z)
  WriteLn(FloatToStr(x) + ';' + FloatToStr(y) + ';' + FloatToStr(z));
end.

Output:

54,1315418738687;66,3549216086336;42,7556340854009

See Also