Using translucency in truecolor modes. allegro game programming library.
#include <allegro.h>
Example exblend
This program demonstrates how to use the translucency functions in truecolor video modes. Two image files are loaded from disk and displayed moving slowly around the screen. One of the images will be tinted to different colors. The other image will be faded out with a varying alpha strength, and drawn on top of the other image.
BITMAP(3alleg4), END_OF_MAIN(3alleg4), PALETTE(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), circle(3alleg4), clear_bitmap(3alleg4), clear_keybuf(3alleg4), create_bitmap(3alleg4), destroy_bitmap(3alleg4), draw_lit_sprite(3alleg4), draw_trans_sprite(3alleg4), fixcos(3alleg4), fixsin(3alleg4), fixtoi(3alleg4), font(3alleg4), install_keyboard(3alleg4), install_timer(3alleg4), itofix(3alleg4), keypressed(3alleg4), load_bitmap(3alleg4), makecol(3alleg4), replace_filename(3alleg4), retrace_count(3alleg4), screen(3alleg4), set_color_conversion(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), set_trans_blender(3alleg4), textprintf_ex(3alleg4), vsync(3alleg4)