Somewhere or other, quite a while ago, I saw a program that does the same thing as xcolors, only better and more conveniently, i.e., it shows you the color associated with each name in the X rgb color map. Can anyone point me to it? I tried to locate it via both freshmeat and google but failed. The trouble with xcolors is that the color map is too long for the screen and there's no available scrolling mechanism. The only way to see the colors that float off the screen is to call xcolors again with a "-start" argument. Paul
On 13 Sep 2001 11:31:12 -0400, Paul Abrahams wrote:
Somewhere or other, quite a while ago, I saw a program that does the same thing as xcolors, only better and more conveniently, i.e., it shows you the color associated with each name in the X rgb color map. Can anyone point me to it? I tried to locate it via both freshmeat and google but failed.
You may be looking for a Gnome utility, gcolorsel. (If you've got Gnome installed, it should be in /opt/gnome/bin; if you're running Gnome, look under Programs -> Utilities -> Color Browser). It's a big improvement over xcolors -- it has a scrollbar, and you can change the View properties to display decimal or hex values in 8 or 16 bits or floating point values. You can also search for colors. A few of the earlier versions I used were a bit unstable when I used the search function, but the latest one I've tried, v1.4.0, seems much better. Daniel
Somewhere or other, quite a while ago, I saw a program that does the same thing as xcolors, only better and more conveniently, i.e., it shows you the color associated with each name in the X rgb color map. Can anyone point me to it? I tried to locate it via both freshmeat and google but failed.
You could use a Tcl/Tk script to do it. Put the code below in an executable file, run it, then double click on the colour names in the list box. Drag with the middle mouse button to scroll the list. #!/usr/bin/wish pack [listbox .colours] set h [open /usr/lib/X11/rgb.txt] while {[gets $h l] >= 0} { .colours insert end [lrange $l 3 end]} close $h bind .colours <Double-Button-1> { .colours configure -background [selection get] }
participants (3)
-
Daniel Prosser
-
Derek Fountain
-
Paul Abrahams