al_unmap_rgb(3alleg5)
π al_unmap_rgb β Allegro 5 API π
okay bestie, welcome to al_unmap_rgb, part of the Allegro 5 API family, and she is so unbothered. no cap. β¨
β¨ SYNOPSIS β¨
like, the whole vibe in code form:
#include <allegro5/allegro.h>
void al_unmap_rgb(ALLEGRO_COLOR color,
unsigned char *r, unsigned char *g, unsigned char *b)
πΈ DESCRIPTION πΈ
so what does she actually do? she reaches into an ALLEGRO_COLOR and pulls out its components. that's it. that's the whole job. iconic. π
the one thing you gotta know: she ignores alpha. completely. not invited to the party, not on the guest list, doesn't exist to her. if you were hoping for the transparency info, bestie, she is simply not the one. π
those components she hands back? they range from 0-255. classic 8-bit energy. π₯
and here's the part that's giving main character: you can call this function before Allegro is initialized. no setup era required, she's ready whenever. π«Ά
π SEE ALSO π
go give these queens a look too:
Allegro reference manual Β· al_unmap_rgb(3alleg5)
and that's the whole page, babes π mwah, go unmap some colors, you got this, slay fr fr π¦β¨π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms