al_map_rgb_f(3alleg5)
π al_map_rgb_f β the Allegro 5 API page π
okay bestie, so this is a page from the Allegro 5 manual (that's the 3alleg5 section, iykyk) and it's literally about making a colour out of float numbers. iconic. let's get into it β¨
π SYNOPSIS π
#include <allegro5/allegro.h>
ALLEGRO_COLOR al_map_rgb_f(float r, float g, float b)
π DESCRIPTION π
so what does it do? it takes r, g, and b β which range from 0.0f-1.0f β and converts them into an ALLEGRO_COLOR(3alleg5), using 1.0f for alpha. that's it. that's the whole vibe. π¦
lowkey the best part: this function can be called before Allegro is initialized. no setup era required, she just works. π
π SEE ALSO π
okay that's the whole page, fr fr πΈ this was brought to you by the Allegro reference manual, page al_map_rgb_f(3alleg5) β go forth and colour slay, bestie πβ¨π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms