Important: The information in this document is obsolete and should not be used for new development.
HSV Color Structure
TheHSVColorstructure contains the hue, saturation, and value of a color. Your application can use anHSVColorstructure to specify a color in aPMColorstructure (page 2-15). For example, your application supplies aPMColorstructure in a color picker parameter block (page 2-20) that it passes to thePickColorfunction (page 2-35).
struct HSVColor { SmallFract hue; /* Fraction of circle, red at 0 */ SmallFract saturation;/* 0-1, 0 for gray, 1 for pure color */ SmallFract value; /* 0-1, 0 for black, 1 for most intensity */ }; typedef struct HSVColor HSVColor;
Field Description
hue- The
SmallFractvalue (page 2-33) for the hue.saturation- The
SmallFractvalue for the saturation, where 1 is full color.value- The
SmallFractvalue for the color's value, where 1 is maximum intensity.