set_write_alpha_blender(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ NAME ✨

set_write_alpha_blender β€” bestie, this one turns on the special alpha-channel editing mode πŸ’… and it lives in the Allegro game programming library πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

void set_write_alpha_blender();

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen πŸ‘‘ this function flips on the special alpha-channel editing mode, and what that mode is for is drawing alpha channels right over the top of a 32-bit RGB sprite you already have, so you can turn it into an RGBA format image. glow-up era fr fr ✨

So the way it works: after you call this function, you can set the drawing mode to DRAW_MODE_TRANS and then write draw color values (0-255) onto a 32-bit image. And the vibe? The color values stay untouched β€” literally unchanged β€” but the alpha gets altered to whatever values you're writing. it's giving surgical precision, no cap πŸ’…

and that's not even all of it 🫢 once you've enabled this mode you can also use draw_trans_sprite() to superimpose an 8-bit alpha mask over the top of an existing 32-bit sprite. mask on, sprite slayed, periodt 🌈

ngl the order matters here β€” call set_write_alpha_blender() first, then switch to DRAW_MODE_TRANS, then write your values. don't skip steps bestie 😭

πŸ’– SEE ALSO πŸ’–


and that's the whole page, bestie!! πŸŽ€ go forth and edit those alpha channels πŸ’œ this was the Allegro manual, version 4.4.3, set_write_alpha_blender(3) β€” mwah, catch you in the next manpage 🧚✨

πŸ“¦ where this page comes from