SIMPLE SOLUTIONS

SET_COLOR(3ALLEG4) - Linux man page online | Library functions

Sets the specified palette entry to the specified RGB triplet. Allegro game programming library.

Chapter
version 4.4.2
set_color(3alleg4) Allegro manual set_color(3alleg4)

NAME

set_color - Sets the specified palette entry to the specified RGB triplet. Allegro game programming library.

SYNOPSIS

#include <allegro.h> void set_color(int index, const RGB *p);

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: RGB rgb; ... vsync(); set_color(192, &rgb);

SEE ALSO

set_palette(3alleg4), get_color(3alleg4), _set_color(3alleg4), ex12bit(3alleg4), exrgbhsv(3alleg4), exscroll(3alleg4)
Allegro version 4.4.2 set_color(3alleg4)
This manual Reference Other manuals
set_color(3alleg4) referred by ex12bit(3alleg4) | exrgbhsv(3alleg4) | exscroll(3alleg4) | get_color(3alleg4) | _set_color(3alleg4) | set_palette(3alleg4)
refer to ex12bit(3alleg4) | exrgbhsv(3alleg4) | exscroll(3alleg4) | get_color(3alleg4) | _set_color(3alleg4) | set_palette(3alleg4)
Download raw manual
Index Allegro manual (+923) Allegro (+926) № 3 (+68044)
Go top