al_draw_tinted_scaled_bitmap(3alleg5)
β¨ al_draw_tinted_scaled_bitmap β¨
okay bestie, gather round, because this one is from the Allegro 5 API and it is literally the glow-up function π β we're drawing a bitmap, tinted, AND scaled, all at once. main character energy fr fr.
πΈ NAME πΈ
al_draw_tinted_scaled_bitmap β Allegro 5 API π
π SYNOPSIS π
#include <allegro5/allegro.h>
void al_draw_tinted_scaled_bitmap(ALLEGRO_BITMAP *bitmap,
ALLEGRO_COLOR tint,
float sx, float sy, float sw, float sh,
float dx, float dy, float dw, float dh, int flags)
like, that's a lot of floats, but we're gonna get through it together π«Ά
π¦ DESCRIPTION π¦
so basically it's giving al_draw_scaled_bitmap(3alleg5)... but make it tinted β¨. What that means is it multiplies all colors in the bitmap with the given color. every single pixel gets that tint vibe check and comes out the other side matching the mood you set. obsessed.
π heads up bestie: go read al_draw_bitmap(3alleg5) for a note on restrictions on which bitmaps can be drawn where. no cap, that part matters β not every bitmap can be drawn everywhere and you don't wanna find out the hard way π
π SEE ALSO π
al_draw_tinted_bitmap(3alleg5)β the no-scaling sibling, go say hi
and that's the whole page, periodt π
this lil masterpiece lives in the Allegro reference manual, under al_draw_tinted_scaled_bitmap(3alleg5) β mwah, iconic, slay, bye 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