1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
.\" Automatically generated by Pandoc 1.19.2.4
.\"
.TH "al_color_xyz" "3" "" "Allegro reference manual" ""
.hy
.SH NAME
.PP
al_color_xyz \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro_color.h>
ALLEGRO_COLOR\ al_color_xyz(float\ x,\ float\ y,\ float\ z)
\f[]
.fi
.SH DESCRIPTION
.PP
Return an ALLEGRO_COLOR(3) structure from XYZ values.
The CIE 1931 XYZ color space consists of three components in the range
0..1.
The Y component corresponds to luminance and the X and Z components
define the color.
.PP
RGB components are always assumed to be in sRGB space.
.RS
.PP
\f[I]Note:\f[]
.PP
The XYZ 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(3).
.RE
.SH SINCE
.PP
5.2.3
.SH SEE ALSO
.PP
al_color_xyz_to_rgb(3), al_color_rgb_to_xyz(3)
|