al_unmap_rgb(3)
π NAME π
Okay bestie, this is the al_unmap_rgb(3) page from the Library Functions Manual, and it's all about al_unmap_rgb β part of the Allegro 5 API. β¨
π SYNOPSIS π
#include <allegro5/allegro.h>
void al_unmap_rgb(ALLEGRO_COLOR color,
unsigned char *r, unsigned char *g, unsigned char *b)
π¦ DESCRIPTION π¦
So al_unmap_rgb grabs the components out of an ALLEGRO_COLOR and straight-up ignores alpha. The components it gives you range from 0-255. Periodt.
And the iconic part? You can call this function before Allegro is initialized. It's giving early-access main character energy. π
π SEE ALSO π
Cute little sign-off: this page comes from the Allegro reference manual β that's the source/version bit β and the original footer's date slot is just the page name again, with no separate date printed. Consider this your end-of-page bow πβ¨π«Ά
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms