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.
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.
They're listed in the Tk html docs under 'colors'.
Are these colors any different from the X11 colors, listed in /usr/share/X11/rgb.txt ?
At Mon, 19 May 2025 09:49:11 -0700 Ian <gay@sfuu.ca> wrote:
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.
They're listed in the Tk html docs under 'colors'.
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.
Are these colors any different from the X11 colors, listed in /usr/share/X11/rgb.txt ?
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.
Am 19.05.2025 um 16:05 schrieb Alan Grunwald:Thanks Harald,
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.
Alan,
this is a long awaited low hanging fruit in Tk.
An "tkinfo colornames" should be implemented.
I would love to use it in colour chooser dropdown boxes etc.
Thanks,
Harald
Are these colors any different from the X11 colors, listed in /usr/share/X11/rgb.txt ?
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.
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.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,064 |
Nodes: | 10 (1 / 9) |
Uptime: | 168:23:47 |
Calls: | 13,692 |
Calls today: | 2 |
Files: | 186,936 |
D/L today: |
10,592 files (3,130M bytes) |
Messages: | 2,411,602 |