rgb(1)rgb(1)NAMErgb - build the color name database
SYNOPSIS
/usr/bin/rgb [ dbname ]
DESCRIPTIONrgb reads from standard input lines of the form:
red green blue name
where red / green / blue are decimal values between the range 0 to 255,
and name is a description of the color. rgb then builds a color name
database in ndbm format. The color name database provides a mapping
between ASCII color names and RGB color values. It is useful for
increasing the portability of color programs. The input source for the
database is in /usr/lib/X11/rgb.txt. rgb.txt is compiled into the ndbm
files rgb.dir rgb.pag. When the server first starts up, it consults
the contents of these files to build an internal representation of
their contents. This internal representation is consulted to map color
names to color values.
rgb uses the default color name database of /usr/lib/X11/rgb.txt.
OPTIONS
dbname Color name database.
EXAMPLES
example% rgb rgb < /usr/lib/X11/rgb.txt
example% cat /usr/lib/X11/rgb.txt
FILES
/usr/lib/X11/rgb.txt color name database source. Maps color
names to RGB color values.
/usr/lib/X11/rgb.dir rgb.pag ndbm files containing color name to RGB
mapping.
SEE ALSOcat(1), ndbm(3)ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Availability │x11/x11-server-utilities │
├─────────────────────────────┼─────────────────────────────┤
│Interface Stability │Committed │
└─────────────────────────────┴─────────────────────────────┘
X Version 11rgb 1.0.3 rgb(1)