1al_color_xyz(3)                                                al_color_xyz(3)
2
3
4

NAME

6       al_color_xyz - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_color.h>
10
11              ALLEGRO_COLOR al_color_xyz(float x, float y, float z)
12

DESCRIPTION

14       Return an ALLEGRO_COLOR(3) structure from XYZ values.  The CIE 1931 XYZ
15       color space consists of three components in the range 0..1.  The Y com‐
16       ponent  corresponds  to luminance and the X and Z components define the
17       color.
18
19       RGB components are always assumed to be in sRGB space.
20
21              Note:
22
23              The XYZ color space can represent more colors than  are  visible
24              in  sRGB  and therefore conversion may result in RGB values out‐
25              side of the 0..1 range.   You  can  check  for  that  case  with
26              al_is_color_valid(3).
27

SINCE

29       5.2.3
30

SEE ALSO

32       al_color_xyz_to_rgb(3), al_color_rgb_to_xyz(3)
33
34
35
36Allegro reference manual                                       al_color_xyz(3)
Impressum