al_unmap_rgb_f(3alleg5)
β¨ al_unmap_rgb_f β¨
okay bestie, welcome to the Allegro 5 API reference manual, page al_unmap_rgb_f(3alleg5). this one is short and sweet and honestly kind of a queen for it π
πΈ NAME πΈ
al_unmap_rgb_f β the Allegro 5 API function that un-maps your RGB, fr fr π
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
void al_unmap_rgb_f(ALLEGRO_COLOR color, float *r, float *g, float *b)
like, that's it. that's the whole vibe. no cap.
π DESCRIPTION π
so basically? you hand it an ALLEGRO_COLOR, and it hands you back the components. it ignores alpha entirely β alpha is not invited to this party, she is simply not on the guest list π
the components you get back will range from 0.0f to 1.0f. floats only, bestie, that's the _f in the name, iykyk β
and here's the iconic part: this function can be called before Allegro is initialized. yes really. you don't have to boot anything up first. she's ready whenever you are, lowkey a dream π«Ά
π SEE ALSO π
go read those too, they're the rest of the squad π
and that's a wrap, angel π this page came straight from the Allegro reference manual, dated version al_unmap_rgb_f(3alleg5) β periodt, slay, go un-map some colors π
π¦ 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