2 JoeyLib Palette Functions
Scott Duensing edited this page 2019-10-17 19:00:29 -05:00

Palette manipulation needs a lot of work. This will be enhanced in the future.

jlPaletteDefault

void jlPaletteDefault(void);

Resets the current palette to the default EGA palette.

jlPaletteSet

void jlPaletteSet(byte index, byte r, byte g, byte b);

Sets the color of palette position index to the specified RGB value. RGB values are specified as 4 bit (0-15) values. Valid index values are from 0-15.

jlPaletteSetFromSta

void jlPaletteSetFromSta(jlStaT *sta);

Sets the display palette to the palette provided by the static image.