HP Visualize c180xp HP Workstations - Graphics Administration Guide For Red Ha - Page 51
Color names, Red: rgb:ffff/0/0
View all HP Visualize c180xp manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 51 highlights
The numerical specification can identify a color in either device-dependent (RGB) or device-independent terms. Color strings are caseinsensitive. X supports the use of abstract color names, for example, "red", "blue". A value for this abstract name is obtained by searching one or more color-name databases. Xlib first searches zero or more client-side databases; the number, location, and content of these databases is implementationdependent. If the name is not found, the color is looked up in the X server's database. The text form of this database is commonly stored in the file /usr/lib/X11/rgb.txt. A numerical color specification consists of a color space name and a set of values in the following syntax: color_space_name:value/.../value 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. 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 "pound-sign" character, followed by a numeric specification, in one of the following formats: #rgb (4 bits each) #rrggbb (8 bits each) #rrrgggbbb (12 bits each) Graphics Administration Guide For Red Hat Linux 6.2