exalpha(3)

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

✨ exalpha β€” bestie edition ✨

okay so this is exalpha(3), straight out of the Allegro manual, and it's the Allegro game programming library btw πŸ’– so you know it's the real deal. It's all about creating and using 32 bit RGBA sprites and honestly? iconic. πŸ‘‘


🌸 SYNOPSIS 🌸

#include <allegro.h>

Example exalpha


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen, this program is literally a whole demo of how to use the 32 bit RGBA translucency functions to store an alpha channel along with a bitmap graphic. like, the alpha channel is just living in there with the bitmap. besties. 🫢

Two images get loaded from disk:

  • one of them is the background 🌈
  • the other one is the sprite ✨

Then β€” and this is the main character moment β€” the example generates an alpha channel for the sprite image, composing that 32 bit RGBA bitmap during runtime, and draws it at the position of the mouse cursor. πŸ–±οΈπŸ’…

so it follows your mouse around. yes really. slay.


πŸ‘‘ SEE ALSO πŸ‘‘

like all the siblings, fr fr. go read these too:


πŸ’– and that's the whole page, bestie πŸ’– This lil gem comes to you from Allegro, version 4.4.3, dated exalpha(3) β€” mwah, no notes, go write some RGBA sprites. πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from