1
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium
2
.\" Permission is hereby granted, free of charge, to any person obtaining
3
.\" a copy of this software and associated documentation files (the
4
.\" "Software"), to deal in the Software without restriction, including
5
.\" without limitation the rights to use, copy, modify, merge, publish,
6
.\" distribute, sublicense, and/or sell copies of the Software, and to
7
.\" permit persons to whom the Software is furnished to do so, subject to
8
.\" the following conditions:
10
.\" The above copyright notice and this permission notice shall be included
11
.\" in all copies or substantial portions of the Software.
13
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
17
.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18
.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19
.\" OTHER DEALINGS IN THE SOFTWARE.
21
.\" Except as contained in this notice, the name of the X Consortium shall
22
.\" not be used in advertising or otherwise to promote the sale, use or
23
.\" other dealings in this Software without prior written authorization
24
.\" from the X Consortium.
26
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by
27
.\" Digital Equipment Corporation
29
.\" Portions Copyright \(co 1990, 1991 by
32
.\" Permission to use, copy, modify and distribute this documentation for
33
.\" any purpose and without fee is hereby granted, provided that the above
34
.\" copyright notice appears in all copies and that both that copyright notice
35
.\" and this permission notice appear in all copies, and that the names of
36
.\" Digital and Tektronix not be used in in advertising or publicity pertaining
37
.\" to this documentation without specific, written prior permission.
38
.\" Digital and Tektronix makes no representations about the suitability
39
.\" of this documentation for any purpose.
40
.\" It is provided ``as is'' without express or implied warranty.
42
.\" $XFree86: xc/doc/man/X11/XcmsClr.man,v 3.4 2001/01/27 18:20:06 dawes Exp $
44
.ds xT X Toolkit Intrinsics \- C Language Interface
45
.ds xW Athena X Widgets \- C Language X Toolkit Interface
46
.ds xL Xlib \- C Language X Interface
47
.ds xC Inter-Client Communication Conventions Manual
54
.\".if \\n(VS>=40 .vs \\n(VSu
55
.\".if \\n(VS<=39 .vs \\n(VSp
78
.de IN \" send an index entry to the stderr
85
.\" choose appropriate monospace font
86
.\" the imagen conditional, 480,
87
.\" may be changed to L if LB is too
88
.\" heavy for your eyes...
90
.ie "\\*(.T"480" .ft L
91
.el .ie "\\*(.T"300" .ft L
92
.el .ie "\\*(.T"202" .ft PO
93
.el .ie "\\*(.T"aps" .ft CW
96
.ie \\n(VS>40 .vs \\n(VSu
104
.ie t \\$1\fB\^\\$2\^\fR\\$3
105
.el \\$1\fI\^\\$2\^\fP\\$3
108
.ie t \fB\^\\$1\^\fR\\$2
109
.el \fI\^\\$1\^\fP\\$2
112
.ie t <\fB\\$1\fR>\\$2
118
.if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2
119
.if \\n(.$ .if !'\\$1'C' .ds NO \\$1
133
. \" Note End -- doug kraft 3/85
142
.TH XcmsColor 3X11 __xorgversion__ "XLIB FUNCTIONS"
144
XcmsColor, XcmsRGB, XcmsRGBi, XcmsCIEXYZ, XcmsCIEuvY, XcmsCIExyY, XcmsCIELab, XcmsCIELuv, XcmsTekHVC, XcmsPad \- Xcms color struture
153
typedef unsigned long XcmsColorFormat; /* Color Specification Format */
168
XcmsColorFormat format;
169
} XcmsColor; /* Xcms Color Structure */
175
typedef double XcmsFloat;
178
unsigned short red; /* 0x0000 to 0xffff */
179
unsigned short green; /* 0x0000 to 0xffff */
180
unsigned short blue; /* 0x0000 to 0xffff */
181
} XcmsRGB; /* RGB Device */
188
XcmsFloat red; /* 0.0 to 1.0 */
189
XcmsFloat green; /* 0.0 to 1.0 */
190
XcmsFloat blue; /* 0.0 to 1.0 */
191
} XcmsRGBi; /* RGB Intensity */
199
XcmsFloat Y; /* 0.0 to 1.0 */
201
} XcmsCIEXYZ; /* CIE XYZ */
208
XcmsFloat u_prime; /* 0.0 to ~0.6 */
209
XcmsFloat v_prime; /* 0.0 to ~0.6 */
210
XcmsFloat Y; /* 0.0 to 1.0 */
211
} XcmsCIEuvY; /* CIE u'v'Y */
218
XcmsFloat x; /* 0.0 to ~.75 */
219
XcmsFloat y; /* 0.0 to ~.85 */
220
XcmsFloat Y; /* 0.0 to 1.0 */
221
} XcmsCIExyY; /* CIE xyY */
228
XcmsFloat L_star; /* 0.0 to 100.0 */
231
} XcmsCIELab; /* CIE L*a*b* */
238
XcmsFloat L_star; /* 0.0 to 100.0 */
241
} XcmsCIELuv; /* CIE L*u*v* */
248
XcmsFloat H; /* 0.0 to 360.0 */
249
XcmsFloat V; /* 0.0 to 100.0 */
250
XcmsFloat C; /* 0.0 to 100.0 */
251
} XcmsTekHVC; /* TekHVC */
262
} XcmsPad; /* four doubles */
267
structure contains a union of substructures,
268
each supporting color specification encoding for a particular color space.
270
XcmsAllocColor(3X11),
271
XcmsStoreColor(3X11),
272
XcmsConvertColors(3X11),