1gl_setpalettecolor(3) Svgalib User Manual gl_setpalettecolor(3)
2
3
4
6 gl_setpalettecolor, gl_setpalettecolors, gl_setpalette - set the color
7 palette
8
9
11 #include <vgagl.h>
12
13 void gl_setpalettecolor(int c, int r, int g, int b);
14 void gl_setpalettecolors(int s, int n, void *sp);
15 void gl_setpalette(void *sp);
16
17
19 gl_setpalettecolor sets red, green and blue values (in the range 0 -
20 63) of color c from the color-lookup-table to r, g and b.
21
22 gl_setpalettecolors sets RGB values of n colors starting at s, which
23 are stored as a table of groups of three bytes each at sp.
24
25 gl_setpalette is equivalent to setpalettecolors(0, 256, sp).
26
27 vga_ext_set(3) might change the range of the colors to be set to 0 -
28 255.
29
30
32 svgalib(7), vgagl(7), svgalib.conf(5), threedkit(7), testgl(1),
33 vga_ext_set(3), gl_getpalette(3), gl_getpalettecolor(3), gl_getpaletteā
34 colors(3).
35
36
38 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
39 essen.de>. The exact source of the referenced demo as well as of the
40 original documentation is unknown.
41
42 It is very likely that both are at least to some extent are due to Harm
43 Hanemaayer <H.Hanemaayer@inter.nl.net>.
44
45 Occasionally this might be wrong. I hereby asked to be excused by the
46 original author and will happily accept any additions or corrections to
47 this first version of the svgalib manual.
48
49
50
51Svgalib (>= 1.2.11) 2 Aug 1997 gl_setpalettecolor(3)