1makeacol(3) Allegro manual makeacol(3)
2
3
4
6 makeacol, makeacol_depth - Converts RGBA colors into display dependent
7 pixel formats. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 int makeacol(int r, int g, int b, int a);
14
15 int makeacol_depth(int color_depth, int r, int g, int b, int a);
16
18 Convert RGBA colors into display dependent pixel formats. In anything
19 less than a 32-bit mode, these are the same as calling makecol() or
20 makecol_depth(), but by using these routines it is possible to create
21 32-bit color values that contain a true 8 bit alpha channel along with
22 the red, green, and blue components. You should only use RGBA format
23 colors as the input to draw_trans_sprite() or draw_trans_rle_sprite()
24 after calling set_alpha_blender(), rather than drawing them directly to
25 the screen.
26
28 Returns the requested RGBA quadruplet.
29
30
32 makecol(3), makecol_depth(3), set_alpha_blender(3),
33 set_write_alpha_blender(3)
34
35
36
37Allegro version 4.2.3 makeacol(3)