HSLToXYZ

From SCAR Divi Manual
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