Important: The information in this document is obsolete and should not be used for new development.
HSV Color Structure
TheHSVColor
structure contains the hue, saturation, and value of a color. Your application can use anHSVColor
structure to specify a color in aPMColor
structure (page 2-15). For example, your application supplies aPMColor
structure in a color picker parameter block (page 2-20) that it passes to thePickColor
function (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
SmallFract
value (page 2-33) for the hue.saturation
- The
SmallFract
value for the saturation, where 1 is full color.value
- The
SmallFract
value for the color's value, where 1 is maximum intensity.