1XcmsColor(3X11)                 XLIB FUNCTIONS                 XcmsColor(3X11)
2
3
4

NAME

6       XcmsColor, XcmsRGB, XcmsRGBi, XcmsCIEXYZ, XcmsCIEuvY, XcmsCIExyY, Xcm‐
7       sCIELab, XcmsCIELuv, XcmsTekHVC, XcmsPad - Xcms color struture
8

STRUCTURES

10       The structure for XcmsColor contains:
11
12       typedef unsigned long XcmsColorFormat;/∗ Color Specification Format */
13
14       typedef struct {
15            union {
16                 XcmsRGB RGB;
17                 XcmsRGBi RGBi;
18                 XcmsCIEXYZ CIEXYZ;
19                 XcmsCIEuvY CIEuvY;
20                 XcmsCIExyY CIExyY;
21                 XcmsCIELab CIELab;
22                 XcmsCIELuv CIELuv;
23                 XcmsTekHVC TekHVC;
24                 XcmsPad Pad;
25            } spec;
26            unsigned long pixel;
27            XcmsColorFormat format;
28       } XcmsColor;             /∗ Xcms Color Structure */
29
30       typedef double XcmsFloat;
31
32       typedef struct {
33            unsigned short red; /∗ 0x0000 to 0xffff */
34            unsigned short green;/∗ 0x0000 to 0xffff */
35            unsigned short blue;/∗ 0x0000 to 0xffff */
36       } XcmsRGB;               /∗ RGB Device */
37
38       typedef struct {
39            XcmsFloat red;      /∗ 0.0 to 1.0 */
40            XcmsFloat green;    /∗ 0.0 to 1.0 */
41            XcmsFloat blue;     /∗ 0.0 to 1.0 */
42       } XcmsRGBi;              /∗ RGB Intensity */
43
44       typedef struct {
45            XcmsFloat X;
46            XcmsFloat Y;        /∗ 0.0 to 1.0 */
47            XcmsFloat Z;
48       } XcmsCIEXYZ;            /∗ CIE XYZ */
49
50       typedef struct {
51            XcmsFloat u_prime;  /∗ 0.0 to ~0.6 */
52            XcmsFloat v_prime;  /∗ 0.0 to ~0.6 */
53            XcmsFloat Y;        /∗ 0.0 to 1.0 */
54       } XcmsCIEuvY;            /∗ CIE u'v'Y */
55
56       typedef struct {
57            XcmsFloat x;        /∗ 0.0 to ~.75 */
58            XcmsFloat y;        /∗ 0.0 to ~.85 */
59            XcmsFloat Y;        /∗ 0.0 to 1.0 */
60       } XcmsCIExyY;            /∗ CIE xyY */
61
62       typedef struct {
63            XcmsFloat L_star;   /∗ 0.0 to 100.0 */
64            XcmsFloat a_star;
65            XcmsFloat b_star;
66       } XcmsCIELab;            /∗ CIE L*a*b* */
67
68       typedef struct {
69            XcmsFloat L_star;   /∗ 0.0 to 100.0 */
70            XcmsFloat u_star;
71            XcmsFloat v_star;
72       } XcmsCIELuv;            /∗ CIE L*u*v* */
73
74       typedef struct {
75            XcmsFloat H;        /∗ 0.0 to 360.0 */
76            XcmsFloat V;        /∗ 0.0 to 100.0 */
77            XcmsFloat C;        /∗ 0.0 to 100.0 */
78       } XcmsTekHVC;            /∗ TekHVC */
79
80       typedef struct {
81            XcmsFloat pad0;
82            XcmsFloat pad1;
83            XcmsFloat pad2;
84            XcmsFloat pad3;
85       } XcmsPad;               /∗ four doubles */
86

DESCRIPTION

88       The XcmsColor structure contains a union of substructures, each sup‐
89       porting color specification encoding for a particular color space.
90

SEE ALSO

92       XcmsAllocColor(3X11), XcmsStoreColor(3X11), XcmsConvertColors(3X11),
93       Xlib - C Language X Interface
94
95
96
97X Version 11                     libX11 1.0.3                  XcmsColor(3X11)
Impressum