Re: Named colours in Tk

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Named colours in Tk
De : et99 (at) *nospam* rocketship1.me (et99)
Groupes : comp.lang.tcl
Date : 20. May 2025, 03:51:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <100gqnq$21qgn$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 5/19/2025 7:05 AM, Alan Grunwald wrote:
Tk recognises a lot of colour names, as documented at, say, https://www.tcl-lang.org/man/tcl9.0/TkCmd/colors.html Is it possible to get a list of them?
 I guess I could hack it out of one of the source files, but I'd hope to be able to get it in a cleaner fashion.
What sort of format do you want? Are there others that this page doesn't document?
I displayed the above link in FF, and then did a click, move pointer to end, shift click, copy, paste into my editor, and made a text file, a:/colors.txt. There were 8360 lines, looking like:
alice blue

240

248

255
AliceBlue

240

248

255
...
YellowGreen

154

205

50
So, each color took up 11 lines, and multi-word names appeared on a single line. So, exactly 760 colors on that page.
Very easy to process with a small tcl script. I didn't look at the system specific colors however.

Date Sujet#  Auteur
19 May 25 * Named colours in Tk12Alan Grunwald
19 May 25 +- Re: Named colours in Tk1Ralf Fassel
19 May 25 +* Re: Named colours in Tk5Ian
19 May 25 i`* Re: Named colours in Tk4Robert Heller
20 May 25 i +- Re: Named colours in Tk1Ian
20 May 25 i +- Re: Named colours in Tk1Schelte
20 May 25 i `- Re: Named colours in Tk1Alan Grunwald
20 May 25 +- Re: Named colours in Tk1et99
20 May 25 +* Re: Named colours in Tk2Harald Oehlmann
20 May 25 i`- Re: Named colours in Tk1Alan Grunwald
20 May 25 +- Re: Named colours in Tk1Olivier
20 May 25 `- Re: Named colours in Tk1greg

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal