Tkinter color names/codes

Jeff Seale jseale18 at insightbb.com
Thu Jan 22 22:14:18 EST 2004


Nuff Said <nuffsaid at phreaker.net> wrote in
news:pan.2004.01.19.21.06.17.957950 at phreaker.net: 

> On Mon, 19 Jan 2004 20:39:18 +0000, Jeff Seale wrote:
> 
>> I just happend to notice that there are very FEW colors that you have
>> to generate using #hex codes. But I was wondering, how many colors
>> have names assigned to them in Tkinter and what are their #hex
>> translations? It'd be nice to know these so I don't accidentally
>> create a color that already has a name.
> 
> http://wiki.tcl.tk/8606
>     - list with all named colors in Tcl/Tk
> 
> http://wiki.tcl.tk/colors
>     - W3C names, hex codes and Tcl/Tk names for the 
>       16 HTML 3.2 colors (i.e. the basic VGA set)
> 
> HTH / Nuff
> 

Is it possible to translate all those colors into their #hex combinations? 
The ones I know about already are Red #FF0000, Yellow #FFFF00, Green #
00FF00, Cyan #00FFFF, Blue #0000FF, Magenta #FF00FF, White #FFFFFF and 
Black #000000.



More information about the Python-list mailing list