1makecol_depth(3)                Allegro manual                makecol_depth(3)
2
3
4

NAME

6       makecol_depth  - Converts an RGB value into the specified pixel format.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int makecol_depth(int color_depth, int r, int g, int b);
14

DESCRIPTION

16       Converts colors from a hardware independent  format  (red,  green,  and
17       blue  values  ranging 0-255) to the pixel format required by the speciā€
18       fied color depth. Example:
19
20          /* Compose the green color for 15 bit color depth. */
21          int green_15bit = makecol_depth(15, 0, 255, 0);
22

RETURN VALUE

24       Returns the requested RGB triplet in the specified color depth.
25
26

SEE ALSO

28       makeacol(3), makecol(3), makecol8(3), makecol15_dither(3),  rgb_map(3),
29       set_color_depth(3)
30
31
32
33Allegro                          version 4.4.2                makecol_depth(3)
Impressum