al_draw_tinted_bitmap_region(3alleg5)
β¨ NAME β¨
al_draw_tinted_bitmap_region β ok so this is the Allegro 5 API function that draws a piece of a bitmap but with a lil color filter on it π (yes the manual name is literally "Allegro 5 API", we love a straightforward king)
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
void al_draw_tinted_bitmap_region(ALLEGRO_BITMAP *bitmap,
ALLEGRO_COLOR tint,
float sx, float sy, float sw, float sh, float dx, float dy,
int flags)
π DESCRIPTION π
So bestie, picture al_draw_bitmap_region(3alleg5) β you know her, she draws a region β except this version multiplies all colors in the bitmap with the given color. That's it, that's the glow-up. The tint color gets multiplied into every single pixel, no cap. β¨
Also, heads up: go check al_draw_bitmap(3alleg5) for a note on restrictions on which bitmaps can be drawn where. Not me skipping the fine print β it's genuinely important, iykyk π«Ά
Lowkey read that other page before you go wild with this one. Some bitmaps just can't be drawn everywhere, and that's not a vibe you want to find out about the hard way. π
π¦ SEE ALSO π¦
al_draw_tinted_bitmap(3alleg5)β the whole-bitmap cousin, equally iconic π
Allegro reference manual β that's the source, and it's giving official Allegro docs energy. This page is the al_draw_tinted_bitmap_region(3alleg5) one, from the Allegro reference manual, dated whenever the manual says it's dated (the footer keeps the real date, I'm just here for the vibes π). Slay, go tint some regions, bestie. ππΈπ
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms