![]() |
![]() |
![]() |
Composite color value
unsigned long PgColor_t;
The PgColor_t type definition describes a composite color value. The lowest 8 bits contain the blue value, the next 8 bits contain the green value, and the next 8 bits after that the red value:
Reserved | Red | Green | Blue |
---|---|---|---|
0000 0000 | rrrr rrrr | gggg gggg | bbbb bbbb |
At least the following colors are defined in <photon/Pg.h>:
Pg_BLACK
Pg_DGRAY
Pg_MGRAY
Pg_GRAY
Pg_WHITE
Pg_RED
Pg_GREEN
Pg_BLUE
Pg_YELLOW
Pg_MAGENTA
Pg_CYAN
Pg_DGREEN
Pg_DCYAN
Pg_DBLUE
Pg_BROWN
Pg_PURPLE
Pg_CELIDON
The following colors are also defined in <photon/Pg.h>:
![]() |
This facility depends on the video hardware, and behaves differently depending on the graphics driver. |
Photon
PgBlueValue(), PgCMY(), PgColorHSV_t PgGreenValue(), PgHSV2RGB(), PgRedValue(), PgRGB(), PgRGB2HSV(), PgSetFillColor(), PgSetFillDither(), PgSetStrokeColor(), PgSetStrokeDither(), PgSetTextColor(), PgSetTextDither()
![]() |
![]() |
![]() |