al_map_rgb_f(3)
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