ColorToXYZ

From SCAR Divi Manual
Revision as of 11:06, 5 July 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure ColorToXYZ(Color: Integer; var X, Y, Z: Extended);

Availability

SCAR Divi 3.00 > Current

Description

Converts a given color value Color to XYZ values and returns them in X, Y and Z. The components can be joined back together into a color value using XYZtoColor.

Example

var
  x, y, z: Extended;

begin
  ColorToXYZ(123456, x, y, z);
  WriteLn(FloatToStr(x) + ';' + FloatToStr(y) + ';' + FloatToStr(z));
end.

Output:

29,316187412587;55,4848927242303;9,1932523901777

See Also