al_draw_tinted_scaled_bitmap(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 πŸ’–


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