al_color_oklab(3alleg5)
π al_color_oklab β Allegro 5 API π
okay bestie, so this one lives in the 3alleg5 manual and it's literally the glow-up function for turning Oklab numbers into an actual color. no cap, it's giving color-science main character energy β¨
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_color.h>
ALLEGRO_COLOR al_color_oklab(float l, float a, float b)
π DESCRIPTION π
So like, this hands you back an ALLEGRO_COLOR(3alleg5) struct built from Oklab values. Here's the breakdown, iykyk:
- the
lcomponent is the luminance vibe, and it lives in the range0..1 - the
aandbcomponents hang out in the range-1..+1
β οΈ Note, and this part matters: the Oklab color space can represent more colors than are visible in sRGB, so the conversion may result in RGB values outside of the0..1range π. You can check for that case withal_is_color_valid(3alleg5)β do that, bestie, don't just yolo it π
β SINCE β
5.2.8 β vintage, but make it iconic π¦
π SEE ALSO π
k bye, ily, go make something pretty π«Ά
this was brought to you by the <strong>Allegro reference manual</strong>, page al_color_oklab(3alleg5) β same name up top and down here, symmetrical queen π
π¦ 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