Sets the specified palette entry to the specified rgb triplet. allegro game programming library.
#include <allegro.h>
void set_color(int index, const RGB *p);
Sets the specified palette entry to the specified RGB triplet. Unlike the other palette functions this doesn't do any retrace synchronisation, so you should call vsync() before it to prevent snow problems. Example:
RGB rgb; ... vsync(); set_color(192, &rgb);
set_palette(3alleg4), get_color(3alleg4), _set_color(3alleg4), ex12bit(3alleg4), exrgbhsv(3alleg4), exscroll(3alleg4)