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

NAME

6       excolmap  - Creating graphical effects with color mapping tables. Alle‐
7       gro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       Example excolmap
14

DESCRIPTION

16       This program demonstrates how to create custom graphic effects with the
17       create_color_table  function.  Allegro drawing routines are affected by
18       any color table you might have set up. In the first part of this  exam‐
19       ple,  a greyscale color table is set. The result is that a simple rect‐
20       fill call, instead of drawing a rectangle with  color  zero,  uses  the
21       already  drawn pixels to determine the pixel to be drawn (read the com‐
22       ment of return_grey_color() for a  precise  description  of  the  algo‐
23       rithm).  In  the second part of the test, the color table is changed to
24       be an inverse table, meaning that any pixel drawn will be shown as  its
25       color values had been inverted.
26
27

SEE ALSO

29       BITMAP(3),    COLOR_MAP(3),    END_OF_MAIN(3),    PALETTE(3),   RGB(3),
30       RGB_MAP(3),   SCREEN_H(3),   SCREEN_W(3),    allegro_error(3),    alle‐
31       gro_init(3),  allegro_message(3),  blit(3),  circlefill(3),  clear_key‐
32       buf(3),  color_map(3),  create_bitmap(3),  create_color_table(3),  cre‐
33       ate_rgb_table(3),  destroy_bitmap(3),  drawing_mode(3), font(3), gener‐
34       ate_332_palette(3),  install_keyboard(3),  keypressed(3),   makecol(3),
35       rectfill(3),  rgb_map(3),  screen(3),  set_gfx_mode(3), set_palette(3),
36       textout_centre_ex(3), vsync(3)
37
38
39
40Allegro                          version 4.4.2                     excolmap(3)
Impressum