Using patterned drawing modes and sub-bitmaps. allegro game programming library.
#include <allegro.h>
Example expat
This program demonstrates the use of patterned drawing and sub-bitmaps.
BITMAP(3alleg4), END_OF_MAIN(3alleg4), acquire_bitmap(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), bitmap_mask_color(3alleg4), blit(3alleg4), clear_to_color(3alleg4), create_bitmap(3alleg4), create_sub_bitmap(3alleg4), desktop_palette(3alleg4), destroy_bitmap(3alleg4), drawing_mode(3alleg4), font(3alleg4), install_keyboard(3alleg4), makecol(3alleg4), masked_blit(3alleg4), palette_color(3alleg4), readkey(3alleg4), rectfill(3alleg4), release_bitmap(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), solid_mode(3alleg4), text_height(3alleg4), text_length(3alleg4), textout_ex(3alleg4)