[comp.sys.ibm.pc] How to set palette in 256-color modes?

rds95@leah.Albany.Edu (Robert Seals) (03/16/89)

Yo -

Can someone please explain to me, or better yet provide a C function,
how to achieve the following: given a palette location and values
for r, g, and b, make the palette location that color.

or:

void	setpalette(int loc, int r, int g, int b);

I guess r, g, and b could be chars, but who cares. And they must be 0..63.
I think if it works for mode 0x13, it will work for vga and stupor vga, too.

THANK you
rob