1vga_setegacolor(3)            Svgalib User Manual           vga_setegacolor(3)
2
3
4

NAME

6       vga_setegacolor - set the current color
7

SYNOPSIS

9       #include <vga.h>
10
11       void vga_setegacolor(int color);
12
13

DESCRIPTION

15       Set  the current color to be a color resembling the color-th EGA coler.
16       This works regardless of the depth of the current video mode.
17
18       The color is used by vga_drawpixel(3) and vga_drawline(3).
19
20       Valid values for color are:
21
22       0      - black.
23       1      - blue.
24       2      - green.
25       3      - cyan.
26       4      - red.
27       5      - magenta.
28       6      - brown.
29       7      - grey.
30       8      - dark grey (light black).
31       9      - light blue.
32       10     - light green.
33       11     - light cyan.
34       12     - light red.
35       13     - light magenta.
36       14     - yellow (light brown).
37       15     - white (light grey).
38
39       The fun(6) and vgatest(6) demos show the basic use of this function.
40
41

SEE ALSO

43       svgalib(7), vgagl(7), libvga.config(5),  fun(6),  vgatest(6),  vga_set‐
44       color(3), vga_setrgbcolor(3), vga_drawpixel(3), vga_drawline(3)
45

AUTHOR

47       This  manual  page  was  edited by Michael Weller <eowmob@exp-math.uni-
48       essen.de>. The exact source of the referenced function as  well  as  of
49       the original documentation is unknown.
50
51       It is very likely that both are at least to some extent are due to Harm
52       Hanemaayer <H.Hanemaayer@inter.nl.net>.
53
54       Occasionally this might be wrong. I hereby asked to be excused  by  the
55       original author and will happily accept any additions or corrections to
56       this first version of the svgalib manual.
57
58
59
60Svgalib (>= 1.2.11)              27 July 1997               vga_setegacolor(3)
Impressum