[Israel.pm] Tk color list?
Micha
nmicha at checkpoint.com
Wed Nov 22 23:26:09 PST 2006
Gaal Yahas wrote:
> On Wed, Nov 22, 2006 at 11:20:14PM +0200, Shmuel Fomberg wrote:
>> I'm looking for a list of colors that are recognized by Tk.
>> I know it have the regular white, red and such.
>> Also found out that it have a lot of grays, (gray55, gray75...)
>> Does anyone have a complete list?
>
> X Windows vendors distribute a file called rgb.txt. Run locate on that
> in your system: it's probably in /usr/share/X11/rgb.txt or similar. I
> don't know if there's a canonical version of that list defined in the
> standard or not.
>
Even simpler on Linux (and most of the Unix flavors) -
'showrgb', executed with no parameters will concatenate the
X's default color DB (which saves you the need to locate the file).
Enjoy,
Micha
More information about the Perl
mailing list