Important: The information in this document is obsolete and should not be used for new development.
HSL Color Structure
TheHSLColorstructure contains a color's hue, saturation, and lightness values. Your application can use anHSLColorstructure to specify a color in aPMColorstructure. For example, your application supplies aPMColorstructure (page 2-15) in a color picker parameter block (page 2-20) that it passes to thePickColorfunction (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
SmallFractvalue (page 2-33) for the hue.saturation- The
SmallFractvalue for the saturation, where 1 is full color.lightness- The
SmallFractvalue for lightness, where 1 is full white.