al_color_oklab_to_rgb(3alleg5)

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

πŸ’– 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 πŸ”₯


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