Provided by: allegro5-doc_5.2.9.1+dfsg-1.1build4_all bug

NAME

       al_color_lab - Allegro 5 API

SYNOPSIS

              #include <allegro5/allegro_color.h>

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

DESCRIPTION

       Return  an  ALLEGRO_COLOR(3alleg5)  structure  from  CIE  L*a*b* values.  The L* component
       corresponds to luminance from 0..1.  The a* and b* components are in the range -1..+1.

              Note:

              The L*a*b* 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).

              Note:

              In some literature the range of L* is 0 to 100 and a* and b* are from -100 to +100.
              In that case divide all components by 100 before passing them to this function.

SINCE

       5.2.3

SEE ALSO

       al_color_lab_to_rgb(3alleg5), al_color_rgb_to_lab(3alleg5)