The X Color Management System (Xcms) recognize color specifications in many different formats called color spaces. Most of these formats reflect international standards. Under Xcms, each color specification has a prefix (some shorthand for the color space) and a numeric value. The following table summarizes the valid color spaces and their prefixes.
| Name | Prefix |
| Tektronix HVC | TekHVC |
| Various CIE formats | CIEXYZ, CIEuvY, CIExyY, CIELab, CIELuv |
| RGB | RGB |
| RGB Intensity | RGBi |
When you create a shade with a color editor, such as xcoloredit
or xtici, the program supplies you with a numeric color value in
one or sometimes multiple formats. To specify the color under Xcms, you
combine the numeric value with the appropriate prefix for the color space/format.
The syntax is:
prefix: value1/value2/value3
The following are sample Xcms color specifications:
CIEuvY:0.15295/0.40507/0.44338
TekHVC:223.93036/72.45283/29.67013
RGB:6a/bb/d8
(Note that the Xcms color spaces are case insensitive)
the following is a command example:
xtem -fg RGB:62/bb/d9 &
Each RGB color has a numeric value associated with it. We can supply
this number on the command line or in a resource file, prefixed with a
pound sign (#), as in the following example:
xbiff -fg #09e5fb &
Return to : Unix System Administration
Hints and Tips