al_unmap_rgb_f(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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