1vga_setcolor(3) Svgalib User Manual vga_setcolor(3)
2
3
4
6 vga_setcolor - set the current color
7
9 #include <vga.h>
10
11 void vga_setcolor(int color);
12
13
15 Set the current color to color. You may only use vga_setcolor() in 256
16 or less color modes. For the other modes you must use vga_setrgb‐
17 color(3) instead.
18
19 The color is used by vga_drawpixel(3) and vga_drawline(3).
20
21 The fun(6) and vgatest(6) demos show the basic use of this function.
22
23
25 svgalib(7), vgagl(7), libvga.config(5), fun(6), vgatest(6), vga_setrgb‐
26 color(3), vga_setegacolor(3), vga_drawpixel(3), vga_drawline(3)
27
29 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
30 essen.de>. The exact source of the referenced function as well as of
31 the original documentation is unknown.
32
33 It is very likely that both are at least to some extent are due to Harm
34 Hanemaayer <H.Hanemaayer@inter.nl.net>.
35
36 Occasionally this might be wrong. I hereby asked to be excused by the
37 original author and will happily accept any additions or corrections to
38 this first version of the svgalib manual.
39
40
41
42Svgalib (>= 1.2.11) 27 July 1997 vga_setcolor(3)