HP Visualize J5000 HP Workstations - Graphics Administration Guide For Red Hat - Page 51

Color names, Red: rgb:ffff/0/0

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73

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