al_map_rgb_f(3)

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

hey bestie! welcome to al_map_rgb_f(3) from the Library Functions Manual β€” it's giving β€œtiny float values become a whole color” and honestly? obsessed πŸ’…

✨ NAME ✨

al_map_rgb_f β€” Allegro 5 API πŸŽ€

🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

ALLEGRO_COLOR al_map_rgb_f(float r, float g, float b)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what it does: it converts r, g, b, (ranging from 0.0f-1.0f) into an ALLEGRO_COLOR(3), using 1.0f for alpha. literally turning your float era into a color, no cap 🌈

and yes β€” this function can be called before Allegro is initialized. highkey convenient, fr fr ✨

πŸ’– SEE ALSO πŸ’–


πŸ’œ that's the whole page, bestie! source/version: Allegro reference manual; date: not listed in the footer. mwah πŸ«ΆπŸŽ€

πŸ“¦ 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