The GRAPH.H file defines the following constants, which can be used as ready-made color values for EGA and VGA adapters:
| _BLACK | _GREEN | _LIGHTYELLOW | |
| _BLUE | _LIGHTBLUE | _MAGENTA | |
| _BRIGHTWHITE | _LIGHTCYAN | _RED | |
| _BROWN | _LIGHTGREEN | _WHITE | |
| _CYAN | _LIGHTMAGENTA, | ||
| _GRAY | _LIGHTRED, | ||
For example, to change color index 1 to red, use the following line:
_remappalette( 1, _RED );
This causes any object currently drawn with color index 1 to change to red. The default color value associated with index 1 is blue.