set_color3alleg
Sets the specified palette entry to the specified rgb triplet. allegro game programming library.
Usage
#include <allegro.h>
void set_color(int index, const RGB *p);
Overview
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);
Releases
4 releases since Debian 3.1 (Sarge); the text changed 2 times.