[Previous] [Contents] [Index] [Next]

PgGray()

Generate the RGB value for a shade of gray

Synopsis:

PgColor_t PgGray( int level );

Description:

This macro converts a gray value into a PgColor_t structure.

The level argument ranges from 0 (black) to 255 (white). Intermediate values produce various shades of gray. For a complete description of composite color values, see PgSetFillColor().

Returns:

A composite color value.

Examples:

Color Gray value
Black PgGray( 0 );
White PgGray( 255 );
Medium Gray PgGray( 160 );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgBlueValue(), PgCMY(), PgGreenValue(), PgHSV(), PgRedValue(), PgRGB(), PgSetFillColor(), PgSetFillDither()


[Previous] [Contents] [Index] [Next]