al_map_rgb(3)

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

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