al_map_rgba(3)
π al_map_rgba(3) β Library Functions Manual π
okay so bestie, we're in the Library Functions Manual and this page is all about al_map_rgba, from the Allegro 5 API. It's giving color conversion, and it's honestly iconic.
πΈ NAME πΈ
al_map_rgbaβ Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
ALLEGRO_COLOR al_map_rgba(
unsigned char r, unsigned char g, unsigned char b, unsigned char a)
π DESCRIPTION π
okay so what this does: it takes r, g, b, and a β each one ranging from 0-255 β and converts them into an ALLEGRO_COLOR(3). Slay. That's the whole glow-up.
And the main character detail: this function can be called before Allegro is initialized. No cap, it's lowkey convenient like that. π¦
π SEE ALSO π
xoxo, signed off by the Allegro reference manual π that's the source/version in the footer, bestie β no date printed on this page, periodt. π«Ά
π¦ 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