| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) | 
Generate the RGB value for a shade of gray
PgColor_t PgGray( int level );
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().
A composite color value.
| Color | Gray value | 
|---|---|
| Black | PgGray( 0 ); | 
| White | PgGray( 255 ); | 
| Medium Gray | PgGray( 160 ); | 
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PgBlueValue(), PgCMY(), PgGreenValue(), PgHSV(), PgRedValue(), PgRGB(), PgSetFillColor(), PgSetFillDither()
| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) |