1set_color(3) Allegro manual set_color(3)
2
3
4
6 set_color - Sets the specified palette entry to the specified RGB
7 triplet. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void set_color(int index, const RGB *p);
14
16 Sets the specified palette entry to the specified RGB triplet. Unlike
17 the other palette functions this doesn't do any retrace synchronisa‐
18 tion, so you should call vsync() before it to prevent snow problems.
19 Example:
20
21 RGB rgb;
22 ...
23 vsync();
24 set_color(192, &rgb);
25
26
28 set_palette(3), get_color(3), _set_color(3), ex12bit(3), exrgbhsv(3),
29 exscroll(3)
30
31
32
33Allegro version 4.2.2 set_color(3)