setting pixels to palette index
I am writing a palette editor and will be displaying the palette as a long bar,
shaded from one end to the other with each palette color.
I need to update the palette display as the palette entries are changed, and
also update the image that the palette is used for.
Palette animation seems the best way to do this.
My question though, is how do I draw with palette index values instead of
For example, SetPixel(, , , ) passes a color reference value, not a palette index.