al_color_oklab_to_rgb(3alleg5)
π al_color_oklab_to_rgb β Allegro 5 API β¨
okay bestie, welcome to the allegro5 manual, section 3, and today's main character is al_color_oklab_to_rgb. it converts Oklab into RGB and honestly? it eats. π
πΈ NAME πΈ
al_color_oklab_to_rgb β the Allegro 5 API function that takes your Oklab vibes and hands them back as RGB. π
β¨ SYNOPSIS β¨
lowkey the whole thing is just this, no cap:
#include <allegro5/allegro_color.h>
void al_color_oklab_to_rgb(float ol, float oa, float ob,
float *red, float *green, float *blue)
π¦ DESCRIPTION π¦
so here's the tea π: you give it Oklab color values, and it converts them into RGB. that's the whole job. it's giving "translator but make it color spaces". π
like, the Oklab side comes in as ol, oa, and ob, and the RGB side comes out through red, green, and blue. the red, green and blue ones are pointers</>β¦ wait, no, they're float * β pointers to floats β so this function writes the results back through them. classic out-param energy, iykyk. π«Ά
π SINCE π
5.2.8 β so if you're on anything older, sorry bestie, this one's not for you yet. π
π₯ SEE ALSO π₯
al_color_oklab(3alleg5)β the other direction of the glow-up β¨al_color_rgb_to_oklab(3alleg5)β and this one's the reverse trip π¦
and that's the whole page, bestie! π this was the Allegro reference manual, page al_color_oklab_to_rgb(3alleg5), and the header up top said the same thing twice because that's just how man pages are, iconic behavior honestly. π go convert some colors, you got this. ππΈ
π¦ 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