Sets the current color for all drawing functions.
If you are have 16 or more colors, color
can be one of the following:
Symbol |
Equivalent number |
 |
0 |
 |
1 |
 |
2 |
 |
3 |
 |
4 |
 |
5 |
 |
6 |
 |
7 |
 |
8 |
 |
9 |
 |
10 |
 |
11 |
 |
12 |
 |
13 |
 |
14 |
 |
15 |
If you are using CGA, MCGA or ATT-400 four-color modes,
you should use instead the following constants,
depending on your palette:
You can change the effect of SET-COLOR using SET-PALETTE.
With CGA-style adapters, only the first color (i.e. black, the
background color) can be changed (it is best to use SET-BK-COLOR).
If you totally re-map the palette with a EGA or VGA adapter,
use SET-COLOR with numbers rather than with symbols, since it
doesn't make programs very clear when
(SET-COLOR
) turns color
to green for example...