get_palette
Retrieves the entire palette of 256 colors. Allegro game programming library.
- Provided by: allegro4-doc (Version: 2:4.4.3.1-4.1build3)
- Source: allegro4.4
- Report a bug
Retrieves the entire palette of 256 colors. Allegro game programming library.
#include <allegro.h>
void get_palette(PALETTE p);
Retrieves the entire palette of 256 colors. You should provide an array of 256 RGB structures to store it in. Example:
PALETTE pal; ... get_palette(pal);
get_palette_range(3alleg4), get_color(3alleg4), set_palette(3alleg4)