al_map_rgba(3)

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

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