al_unmap_rgb(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– 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