COLORVIEW(1) COLORVIEW(1)
colorview - display list of X11 colors and show selected color
colorview [ -browse ] [ -display dpy ] [ -geometry geom ]
[ -name name ] [ -text ] [ file | - ]
Colorview is an X11 program that displays a color ``patch'' and a list of
color names from an X11 rgb database. The color for a name is displayed
by clicking the left mouse button over the color name.
Command-line arguments are:
-browse only lists the colors; the Accept and Apply buttons are not
displayed.
-display dpy
specifies the X server to contact; see X(1).
-geometry geom
specifies the preferred size and position of the window; see
X(1).
-name name
specifies the application name under which resources are to be
obtained, rather than the default executable file name.
-text indicates the specified file is a text file containing color
names and/or X #rgb color specifications, with 1 name per line.
file specifies the name the rgb database. The database must be in
ndbm(3B) format unless -text is specified. With -text, the
database is read from standard input if file is ``-''.
Colorview has three buttons when not invoked with -browse:
Accept Print the selected color name on the standard output and exit.
Apply Print the selected color name on the standard output.
Cancel Exits the program.
To display only unique colors from the default rgb database:
showrgb | sort -u +0 -3 | awk '{print $4,$5,$6,$7}' \
| sort | colorview -text -
Page 1
COLORVIEW(1) COLORVIEW(1)
To display a list of colors from a file:
colorview -text mycolors.txt
To display a list of colors using the X #rgb color specification:
colorview -text - << _END_
#f0f
#7171c6
#8E3855
_END_
/usr/lib/X11/rgb default rgb ndbm(3B) database
rgb(1), showrgb(1), X(1)
PPPPaaaaggggeeee 2222 [ Back ]
|