Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 2 - Color Picker Manager Reference /
Color Picker Manager Functions / Converting Colors Among Color Models


Converts an RGB color to an HSL color.

pascal void RGB2HSL (const RGBColor *rColor, 
HSLColor *hColor);
A pointer to a Color QuickDraw RGBColor structure specifying the RGB color to be converted.
A pointer to an HSLColor structure (page 2-33). On output, the converted color.
The RGB2HSL function converts the RGB color specified in the rColor parameter to the HSL color pointed to in the hColor parameter.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996