.\" Generated by the Allegro makedoc utility .TH set_color 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME set_color \- Sets the specified palette entry to the specified RGB triplet. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void set_color(int index, const RGB *p); .SH DESCRIPTION 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: .nf RGB rgb; ... vsync(); set_color(192, &rgb); .fi .SH SEE ALSO .BR set_palette (3alleg4), .BR get_color (3alleg4), .BR _set_color (3alleg4), .BR ex12bit (3alleg4), .BR exrgbhsv (3alleg4), .BR exscroll (3alleg4)