An RGB Device specification is identified by the prefix "rgb:" and has the following syntax:
rgb:red/green/blue
where red, green, and blue are encoded as h, hh, hhh, or hhhh, and h represents a single hexadecimal digit.
___________________________________________________________________________
Note: “h” indicates the value scaled in 4 bits; hh, the value scaled in 8 bits; hhh, the value scaled in 12 bits; and hhhh the value scaled in 16 bits, respectively. These values are passed directly to the X server, and are assumed to be gamma corrected.
___________________________________________________________________________
The eight primary colors can be represented as:
•Black: rgb:0/0/0
•Red: rgb:ffff/0/0
•Green: rgb:0/ffff/0
•Blue: rgb:0/0/ffff
•Yellow: rgb:ffff/ffff/0
•Magenta: rgb:ffff/0/ffff
•Cyan: rgb:0/ffff/ffff
•White: rgb:ffff/ffff/ffff
For backward compatibility, an older syntax for RGB device is supported, but its continued use is not encouraged. The syntax is an initial
#rgb (4 bits each) #rrggbb (8 bits each) #rrrgggbbb (12 bits each) #rrrrggggbbbb (16 bits each)
The r, g, and b represent single hexadecimal digits. When fewer than 16 bits each are specified, they represent the
An RGB intensity specification is identified by the prefix "rgbi:" and has the following syntax:
rgbi:red/green/blue
The red, green, and blue are
Page 134 | Graphics Administration Guide for |