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

NAME

6       vga_getpalette - get a color in the color lookup table
7

SYNOPSIS

9       #include <vga.h>
10
11       void vga_getpalette(int index, int *r, int *g, int *b);
12
13

DESCRIPTION

15       Get  the color with index index and store its RGB values at *r, *g, and
16       *b, each in the range 0 - 63. This function is only sensible in  16  or
17       256  color  modes. It returns which color all vga_setcolor(index) drawn
18       pixels actually refer to.
19
20       If  the  VGA_CLUT8  feature  is  set  for   the   current   mode   with
21       vga_ext_set(3) the *r, *g, and *b values are in the range 0 - 255.
22
23

SEE ALSO

25       svgalib(7),  vgagl(7),  libvga.config(5),  vgatest(6),  vga_ext_set(3),
26       vga_setpalvec(3),  vga_setpalette(3),   vga_getpalvec(3),   vga_setrgb‐
27       color(3), vga_setcolor(3), vga_setegacolor(3)
28

AUTHOR

30       This  manual  page  was  edited by Michael Weller <eowmob@exp-math.uni-
31       essen.de>. The exact source of the referenced function as  well  as  of
32       the original documentation is unknown.
33
34       It is very likely that both are at least to some extent are due to Harm
35       Hanemaayer <H.Hanemaayer@inter.nl.net>.
36
37       Occasionally this might be wrong. I hereby asked to be excused  by  the
38       original author and will happily accept any additions or corrections to
39       this first version of the svgalib manual.
40
41
42
43Svgalib (>= 1.2.11)              27 July 1997                vga_getpalette(3)
Impressum