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

NAME

6       vga_setpalvec - sets colors in the color lookup table
7

SYNOPSIS

9       #include <vga.h>
10
11       int vga_setpalvec(int start, int num, int *pal);
12
13

DESCRIPTION

15       Sets  the  num  colors  starting  with index start to the RGB values in
16       *pal. *pal contains 3 * num integers which are the color values to  set
17       from  first to last palette entry in the order red, green, blue (always
18       three consecutive entries in *pal built a palette entry.
19
20       Each color entry is in range 0 - 63. This function is only sensible  in
21       16  or  256 color modes. It selects which color all vga_setcolor(start)
22       (and num - 1 following colors) drawn pixels will actually refer to.
23
24       Note that setting color 0 will modify the  background  color  and  that
25       setting  any  color  in  range  0  ..  15  will affect the operation of
26       vga_setegacolor(3).
27
28       If  the  VGA_CLUT8  feature  is  set  for   the   current   mode   with
29       vga_ext_set(3)  the  red,  green,  and blue values are in the range 0 -
30       255.
31
32       The function returns the value of num.
33
34

SEE ALSO

36       svgalib(7),  vgagl(7),  libvga.config(5),  vgatest(6),  vga_ext_set(3),
37       vga_setpalette(3),   vga_getpalette(3),  vga_getpalvec(3),  vga_setrgb‐
38       color(3), vga_setcolor(3), vga_setegacolor(3)
39

AUTHOR

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