logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

al_color_oklab - Allegro 5 API

Description

       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.

              Note:

              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).

Name

       al_color_oklab - Allegro 5 API

See Also

al_color_oklab_to_rgb(3alleg5), al_color_rgb_to_oklab(3alleg5)

Allegro reference manual                                                                 al_color_oklab(3alleg5)

Since

       5.2.8

Synopsis

              #include <allegro5/allegro_color.h>

              ALLEGRO_COLOR al_color_oklab(float l, float a, float b)

See Also