Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rgb(1) — SunOS 4.1.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

bldrgb(1)

cat(1)

dbm(3)

rgb(1)

rgb(1)  —  USER COMMANDS

NAME

rgb − build the color name database

SYNOPSIS

rgb [ dbname ]

DESCRIPTION

rgb 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 dbm 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 $OPENWINHOME/lib/rgb.txt.rgb.txt is compiled into the dbm files rgb.dir and 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 dbname of /usr/lib/X11/rgb.

OPTIONS

dbnameColor name database. 

EXAMPLES

% rgb rgb < rgb.txt % cat $OPENWINHOME/lib/rgb.txt

FILES

$OPENWINHOME/lib/rgb.txt color name database source

$OPENWINHOME/lib/rgb.dir dbm file containing rgb bit map

$OPENWINHOME/lib/rgb.pag
dbm file containing rgb data

SEE ALSO

bldrgb(1), cat(1), dbm(3), rgb(1)

{:heading=>"rgb\|(\|1\|)\0\0\(em\0\0\∗(]D"}  —  Last change: 26 September 1990  —  Last change: 26 September 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026