void al_draw_tinted_bitmap(ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR tint,
   float dx, float dy, int flags)
Introduced in 5.0.0

Like al_draw_bitmap but multiplies all colors in the bitmap with the given color. For example:

al_draw_tinted_bitmap(bitmap, al_map_rgba_f(1, 1, 1, 0.5), x, y, 0);

The above will draw the bitmap 50% transparently.

al_draw_tinted_bitmap(bitmap, al_map_rgba_f(1, 0, 0, 1), x, y, 0);

The above will only draw the red component of the bitmap.

Examples: ex_bitmap_flip, ex_blend2, ex_draw_bitmap, ex_expose, ex_logo, ex_nodisplay, ex_transform

Most helpful discussions:

Other recent discussions: