al_color_rgb_to_linear(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 πŸ¦‹


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