Generate the RGB value for a shade of gray
PgColor_t PgGray( int level );
ph
This macro converts a gray value into a PgColor_t structure. 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(), PgColor_t, PgCMY(), PgGreenValue(), PgHSV(), PgRedValue(), PgRGB(), PgSetFillColor(), PgSetFillDither()
“Color” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide