.\" Generated by the Allegro makedoc utility .TH extrans 3 "version 4.2.2" "Allegro" "Allegro manual" .SH NAME extrans \- Lighting and translucency effects. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B Example extrans .SH DESCRIPTION This program demonstrates how to use the lighting and translucency functions. The first part of the example will show a dark screen illuminated by a spotlight you can move with your mouse. After a key press the example shows the full bitmap and the spotlight changes to be a reduced version of the background with 50% of translucency. The translucency effect is easy to do in all color depths. However, the lighting effect has to be performed in a different way depending on whether the screen is in 8bit mode or another color depth. This is because additive drawing mode uses a different set of routines for truecolor modes. .SH SEE ALSO .BR BITMAP (3), .BR COLOR_MAP (3), .BR END_OF_MAIN (3), .BR PALETTE (3), .BR RGB (3), .BR RGB_MAP (3), .BR SCREEN_H (3), .BR SCREEN_W (3), .BR allegro_error (3), .BR allegro_init (3), .BR allegro_message (3), .BR bitmap_color_depth (3), .BR blit (3), .BR circlefill (3), .BR clear_bitmap (3), .BR clear_keybuf (3), .BR color_map (3), .BR create_bitmap (3), .BR create_bitmap_ex (3), .BR create_light_table (3), .BR create_rgb_table (3), .BR create_trans_table (3), .BR destroy_bitmap (3), .BR draw_trans_sprite (3), .BR drawing_mode (3), .BR install_keyboard (3), .BR install_mouse (3), .BR install_timer (3), .BR keypressed (3), .BR load_bitmap (3), .BR mouse_x (3), .BR mouse_y (3), .BR poll_mouse (3), .BR rectfill (3), .BR replace_filename (3), .BR rest (3), .BR rgb_map (3), .BR screen (3), .BR set_alpha_blender (3), .BR set_gfx_mode (3), .BR set_palette (3), .BR set_trans_blender (3), .BR set_write_alpha_blender (3), .BR stretch_blit (3)