vga_setegacolor3
Set the current color
Usage
#include <vga.h>
void vga_setegacolor(int color);
Overview
Set the current color to be a color resembling the color-th EGA coler. This works regardless of the depth of the current video mode.
The color is used by vga_drawpixel(3) and vga_drawline(3).
Valid values for color are:
|
- black. |
|---|---|
|
- blue. |
|
- green. |
|
- cyan. |
|
- red. |
|
- magenta. |
|
- brown. |
|
- grey. |
|
- dark grey (light black). |
|
- light blue. |
|
- light green. |
|
- light cyan. |
|
- light red. |
|
- light magenta. |
|
- yellow (light brown). |
|
- white (light grey). |
The fun(6) and vgatest(6) demos show the basic use of this function.
Releases
Unchanged in 5 releases since Debian 3.1 (Sarge).