al_color_rgb_to_linear(3alleg5)
β¨ NAME β¨
al_color_rgb_to_linear β bestie, this is the Allegro 5 API π (yes, that Allegro 5, the graphics library we're all obsessed with)
π SYNOPSIS π
#include <allegro5/allegro_color.h>
void al_color_rgb_to_linear(float red, float green, float blue,
float *r, float *g, float *b)
π DESCRIPTION π
okay so listen π«Ά this function takes your gamma corrected sRGB values β aka, like, normal RGB, the RGB you already know and love β and converts them into linear sRGB space. that's it. that's the whole job. lowkey iconic of it π«
you hand it red, green and blue, and it drops the linear versions into the pointers r, g and b. glow up complete β¨
π SINCE π
5.2.8 β she's been here since 5.2.8, a true veteran π
π¦ SEE ALSO π¦
al_color_linear(3alleg5)β the other girlie in this friend group πal_color_linear_to_rgb(3alleg5)β the one who does it backwards π
and that's the whole page bestie, no cap π β¨
this was the Allegro reference manual version of al_color_rgb_to_linear(3alleg5) β go forth and convert those colors, you absolute legend ππ
π¦ 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