1al_color_lab(3)                                                al_color_lab(3)
2
3
4

NAME

6       al_color_lab - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_color.h>
10
11              ALLEGRO_COLOR al_color_lab(float l, float a, float b)
12

DESCRIPTION

14       Return  an  ALLEGRO_COLOR(3)  structure from CIE L*a*b* values.  The L*
15       component corresponds to luminance from 0..1.  The a* and b* components
16       are in the range -1..+1.
17
18              Note:
19
20              The  L*a*b* color space can represent more colors than are visi‐
21              ble in sRGB and therefore conversion may result  in  RGB  values
22              outside  of  the  0..1  range.  You can check for that case with
23              al_is_color_valid(3).
24
25              Note:
26
27              In some literature the range of L* is 0 to 100 and a* and b* are
28              from  -100  to  +100.  In that case divide all components by 100
29              before passing them to this function.
30

SINCE

32       5.2.3
33

SEE ALSO

35       al_color_lab_to_rgb(3), al_color_rgb_to_lab(3)
36
37
38
39Allegro reference manual                                       al_color_lab(3)
Impressum