PgColorHSV_t

Hue-saturation-value color value

Synopsis:

typedef struct {
    unsigned short  hue;
    unsigned char   sat, vid;
} PgColorHSV_t;

Description:

The PgColorHSV_t structure describes a hue-saturation-value color. It's used to convert a color defined as red, green, and blue into HSV. It contains at least the following members:

unsigned short hue
Color angle; see PgHSV().
unsigned char sat
Color saturation.
unsigned char vid
Color value, or brightness.

Classification:

Photon

See also:

PgColor_t, PgHSV(), PgHSV2RGB(), PgRGB2HSV()

Color in the Raw Drawing and Animation chapter of the Photon Programmer's Guide