Appearance
load_palette
Prototypevoid load_palette(string[199] 256_color_bmp_file)
load_palette replaces the current palette with the palette found in 256_color_bmp_file
. This will only work in 256 color mode, so if you plan on using palettes extensively, you may wish to use get_truecolor in start.c
to force this.
By default, the palette is defined in Tiles/TS01.bmp
.
The palette is not saved in the save game file, so you may need to take that into consideration.
Flawed
In some situations this function can cause the colors to mess up and change in a way unintended by the specified palette. A better option is to apply your palette to a BMP file and use copy_bmp_to_screen() to change the palette.