set_write_alpha_blender(3)
β¨ 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 β callset_write_alpha_blender()first, then switch toDRAW_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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms