Man Linux: Main Page and Category List

NAME

       excolmap  -  Creating  graphical  effects  with  color  mapping tables.
       Allegro game programming library.

SYNOPSIS

       #include <allegro.h>

       Example excolmap

DESCRIPTION

       This program demonstrates how to create custom graphic effects with the
       create_color_table  function.  Allegro drawing routines are affected by
       any color table you might have set  up.  In  the  first  part  of  this
       example,  a  greyscale  color table is set. The result is that a simple
       rectfill call, instead of drawing a rectangle with color zero, uses the
       already  drawn  pixels  to  determine  the  pixel to be drawn (read the
       comment  of  return_grey_color()  for  a  precise  description  of  the
       algorithm).  In the second part of the test, the color table is changed
       to be an inverse table, meaning that any pixel drawn will be  shown  as
       its color values had been inverted.

SEE ALSO

       BITMAP(3alleg),         COLOR_MAP(3alleg),         END_OF_MAIN(3alleg),
       PALETTE(3alleg),   RGB(3alleg),   RGB_MAP(3alleg),    SCREEN_H(3alleg),
       SCREEN_W(3alleg),      allegro_error(3alleg),     allegro_init(3alleg),
       allegro_message(3alleg),       blit(3alleg),        circlefill(3alleg),
       clear_keybuf(3alleg),     color_map(3alleg),     create_bitmap(3alleg),
       create_color_table(3alleg),                   create_rgb_table(3alleg),
       destroy_bitmap(3alleg),       drawing_mode(3alleg),       font(3alleg),
       generate_332_palette(3alleg),                 install_keyboard(3alleg),
       keypressed(3alleg), makecol(3alleg), rectfill(3alleg), rgb_map(3alleg),
       screen(3alleg),       set_gfx_mode(3alleg),        set_palette(3alleg),
       textout_centre_ex(3alleg), vsync(3alleg)