aboutsummaryrefslogtreecommitdiffstats
path: root/LIBCOLOUR_CIEXYY.7
blob: 1e039f870ac4acf0a1842b22c402ea336a0c1a2e (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.TH LIBCOLOUR_CIEXYY 7 libcolour
.SH NAME
LIBCOLOUR_CIEXYY - CIE xyY
.SH DESCRIPTION
CIE xyY colours are presented with either of
.nf

	typedef struct libcolour_ciexyy_f libcolour_ciexyy_f_t;
	typedef struct libcolour_ciexyy_lf libcolour_ciexyy_lf_t;
	typedef struct libcolour_ciexyy_llf libcolour_ciexyy_llf_t;

.fi
These
.BR struct s
use
.BR float ,
.BR double ,
and
.BR long\ double ,
respecitively, for the values stored in them,
and are otherwise identical.
.B struct libcolour_ciexyy_f
is defined as
.nf

	struct libcolour_ciexyy_f {
		enum libcolour_model \fImodel\fP;
		float \fIx\fP;
		float \fIy\fP;
		float \fIY\fP;
	};

.fi
.I .model
shall be set to
.BR LIBCOLOUR_CIEXYY .
In
.BR union\ libcolour_colour_f ,
.BR union\ libcolour_colour_lf ,
and
.BR union\ libcolour_colour_llf ,
.I .ciexyy
is used for CIE xyY colours.
.P
.IR .x ,
.IR .y ,
and
.I .Y
hold the unscaled x, y, and Y values, respectively.
.P
CIE xyY is not additive, nor is it linearily
isomorphic to CIE 1931 XYZ. Rather, it is defined by
x = X/(X + Y + Z), y = Y/(X + Y + Z), where X, Y, and
Z are the CIE 1931 XYZ values (with the same names)
for the same colour. The value Y is the same in both
colour models.
.P
This colour model is derived from CIE 1931 XYZ and
is primarily used for representing chromaticities.
.SH SEE ALSO
.BR libcolour (7)
.SH AUTHORS
Mattias Andrée
.RI < maandree@kth.se >