al_color_linear_to_rgb(3alleg5)
β¨ NAME β¨
bestie, meet al_color_linear_to_rgb β it's part of the Allegro 5 API, and the manual page itself is al_color_linear_to_rgb(3alleg5). yes, the name is a whole mouthful, we move anyway π
π SYNOPSIS π
#include <allegro5/allegro_color.h>
void al_color_linear_to_rgb(float r, float g, float b,
float *red, float *green, float *blue)
πΈ DESCRIPTION πΈ
okay so picture this: you've got linear sRGB color values and you need them to become gamma corrected β aka normal β RGB values. that's literally it. that's the whole function. it converts one into the other and minds its own business β¨
here's who's who in the signature:
float r,float g,float bβ the linear sRGB color values you're handing over, one float each for red, green, and blue.float *red,float *green,float *blueβ pointers where the gamma corrected (i.e. normal) RGB values get written. yes bestie, they're pointers. don't forget the&unless you enjoy chaos π
π SINCE π
5.2.8 β she's been here since 5.2.8, iconic behavior honestly π
π¦ SEE ALSO π¦
al_color_linera(3alleg5)β yep, spelled exactly like that in the source, no cap, don't come for me πal_color_rgb_to_linear(3alleg5)β the reverse glow-up, for when you need to go the other way π«Ά
and that's the whole page, bestie. this was served fresh from the Allegro reference manual, starring page al_color_linear_to_rgb(3alleg5). go convert something gorgeous. mwah πβ¨
π¦ 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