Sujet : Re: Named colours in Tk
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 19. May 2025, 16:35:46
Autres entêtes
Message-ID : <ygaplg4aa0d.fsf@akutech.de>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Alan Grunwald <
nospam.nurdglaw@gmail.com>
| 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.
That would probably be xlib/xcolors.c with a very tricky table and
binary search algo.
Note that the plain text doc/colors.n contains at least one error
('agua' vs 'aqua').
R'