Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 2 - Color Picker Manager Reference /
Constants and Data Types


HSV Color Structure

The HSVColor structure contains the hue, saturation, and value of a color. Your application can use an HSVColor structure to specify a color in a PMColor structure (page 2-15). For example, your application supplies a PMColor structure in a color picker parameter block (page 2-20) that it passes to the PickColor 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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996