al_map_rgb(3)
al_map_rgb(3) πβ¨
okay bestie, this is al_map_rgb(3) from the Library Functions Manual β Allegro 5 API edition, we love a niche icon π.
β¨ NAME β¨
al_map_rgb β Allegro 5 API, periodt π
π SYNOPSIS π
#include <allegro5/allegro.h>
ALLEGRO_COLOR al_map_rgb(
unsigned char r, unsigned char g, unsigned char b)
π DESCRIPTION π
okay so here's the vibe: it converts r, g, and b β each ranging from 0-255 β into an ALLEGRO_COLOR(3), using 255 for alpha. literally that's it, and it ate π.
And yes: this function can be called before Allegro is initialized. no initialization gatekeeping, we love to see it π¦.
π«Ά SEE ALSO π«Ά
cute sign-off time π: source/version is the Allegro reference manual, page al_map_rgb(3) β and there's no date in the footer, so I'm not making one up, bestie ππ.
π¦ 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