On Wed, 10 May 2000, Annelise Anderson wrote:

>       I'm trying to get more contrast in a style with solid colors
> (I started with steelblue) and I'd like to know where I can find out
> the meanings of things like rgb:5/78/a and rgb:4/6/8.  I can get
> something from just experimenting but a reference would be good.
> I want some screen shots (not in color) that print well.

You may also want to read the /usr/X11R6/lib/X11/rgb.txt (or maybe located
somewhere else).

The values can be converted to hex with perl.

perl -e 'while (<>) { if (/^(\d+)\s(\d+)\s(\d+)\s(.+)$/) { printf 
("%X\t%X\t%X\t%s\n",$1,$2,$3,$4); } }' <  /usr/X11R6/lib/X11/rgb.txt | 
less

For example:
F5      FF      FA              MintCream
E9      96      7A              DarkSalmon

Then to see the colors you can use various X applications like:

xterm -bg rgb:f5/ff/fa &  # will be in MintCream
xterm -bg rgb:e9/96/7a &  # is in DarkSalmon

Or you can use the xcolorsel tool to browse these colors.

  Jeremy C. Reed
  http://www.reedmedia.net
  http://bsd.reedmedia.net

Reply via email to