Important: The information in this document is obsolete and should not be used for new development.
HSL Color Structure
TheHSLColor
structure contains a color's hue, saturation, and lightness values. Your application can use anHSLColor
structure to specify a color in aPMColor
structure. For example, your application supplies aPMColor
structure (page 2-15) in a color picker parameter block (page 2-20) that it passes to thePickColor
function (page 2-35). Note that the standard HLS order is altered to HSL.
struct HSLColor { SmallFract hue; /* Fraction of circle, red at 0 */ SmallFract saturation;/* 0-1, 0 for gray, 1 for pure color */ SmallFract lightness;/* 0-1, 0 for black, 1 for white */ }; typedef struct HSLColor HSLColor;
Field Description
hue
- The
SmallFract
value (page 2-33) for the hue.saturation
- The
SmallFract
value for the saturation, where 1 is full color.lightness
- The
SmallFract
value for lightness, where 1 is full white.