.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_color_oklab" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_color_oklab - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include ALLEGRO_COLOR al_color_oklab(float l, float a, float b) \f[R] .fi .SH DESCRIPTION .PP Return an ALLEGRO_COLOR(3alleg5) structure from Oklab values. The L component corresponds to luminance from 0..1. The a and b components are in the range -1..+1. .RS .PP \f[I]Note:\f[R] .PP The Oklab color space can represent more colors than are visible in sRGB and therefore conversion may result in RGB values outside of the 0..1 range. You can check for that case with al_is_color_valid(3alleg5). .RE .SH SINCE .PP 5.2.8 .SH SEE ALSO .PP al_color_oklab_to_rgb(3alleg5), al_color_rgb_to_oklab(3alleg5)