al_put_blended_pixel(3alleg5)

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

πŸ’– al_put_blended_pixel β€” Allegro 5 API πŸ’–

okay bestie, so this is a page from the Allegro 5 manual, and it's a tiny one but it's so useful. it's literally giving "small but mighty" energy. let's go ✨


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_put_blended_pixel(int x, int y, ALLEGRO_COLOR color)

that's it, that's the whole vibe. one function, three args, no drama πŸŽ€


🌸 DESCRIPTION 🌸

so basically, al_put_blended_pixel is exactly like al_put_pixel(3alleg5)… except β€” and this is the part that eats πŸ’… β€” the pixel's color gets blended using the current blenders before it's drawn.

read that again, bestie. not after. before. the blending happens first, then the pixel shows up on screen. it's giving "getting ready before the party" fr fr πŸ¦‹

so if you've got blenders set up (you know, the whole alpha / additive / whatever situation), this function actually respects them instead of just yeeting a raw color onto your bitmap. main character behavior honestly πŸ‘‘


🌈 SEE ALSO 🌈


ngl there's genuinely nothing else on this page β€” no options, no return values, no exit statuses, no environment variables. just a cute little function doing its blended thing. no cap. πŸ“

and that's the whole page, babe! this one came from the Allegro reference manual β€” the al_put_blended_pixel(3alleg5) page itself β€” so if you ever need to cite it, that's where it lives. slay, go blend some pixels, ily πŸ˜­πŸ’–βœ¨

πŸ“¦ where this page comes from