geta32(3alleg4)

πŸ’– NAME πŸ’–

geta32 β€” bestie, this one pulls the alpha component out of a color that's chillin' in a 32-bit pixel format. It's giving Allegro game programming library, and it's lowkey iconic ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

int geta32(int c);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: you hand over a color c that's living its best life in a 32-bit pixel format, and this function is like "say less" and hands you back just the alpha component 🌈

That alpha value comes out ranging 0-255, no cap. That's the whole vibe. That's the whole function. She's simple, she's efficient, she ate πŸ’…


🌸 SEE ALSO 🌸

  • getr8(3alleg4) β€” the sister function, go say hi πŸ‘‘

no fr, that's genuinely all she does and honestly? respect 🫢

Allegro, version 4.4.3 β€” that's the source and the version, mwah πŸ’‹ this lil page is filed under the Allegro manual as geta32(3alleg4), so if you ever need to find her again, iykyk πŸ§šβ€β™€οΈβ­