.TH vga_getpalette() "" "" "VGA Function"
.PC "Get a color from the current palette"
.B "#include <vga.h>"
\fBint vga_getpalette(\fIindex\^\fB, \fIred\^\fB, \fIgreen\^\fB, \fIblue\^\fB)\fR
\fBint \fIindex\^\fB, *\fIred\^\fB, *\fIgreen\^\fB, *\fIblue\^\fB;\fR
.PP
Function
.B vga_getpalette()
reads color
.I index
from the current palette.
.IR red ,
.IR green ,
and
.I blue
respectively give the addresses at which the function writes the values for
the red, green, and blue guns.
.SH "See Also"
.B
libvga,
vga_getpalvec(),
vga_setpalette()
.R
