as far as i know the wish can't be startet without an display.
To convert tcl-colors to html-colors i use
eval format "#%04x%04x%04x" [winfo rgb . seagreen]
How can this be done in 'batch-mode' (without an display)
Is ther a tcl-way to do this?
Thanks, Matthias
can you not simply use the values in 'rgb.txt' directly?
>
> On Mar 18, 9:04=A0am, Matthias Meier <Me...@FuH-E.de> wrote:
> > Hello,
> >
> > as far as i know the wish can't be startet without an display.
> >
> > To convert tcl-colors to html-colors i use
> >
> > =A0 =A0 =A0 =A0 eval format "#%04x%04x%04x" [winfo rgb . seagreen]
> >
> > How can this be done in 'batch-mode' (without an display)
> > Is ther a tcl-way to do this?
> >
> > Thanks, Matthias
>
> can you not simply use the values in 'rgb.txt' directly?
Note: if X11 is not installed (eg on a server) rgb.txt won't exist.
(Nothing stopping the OP from grabing a copy rgb.txt from the xorg
code, though...)
>
--
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
The Tcl3D source code distribution (www.tcl3d.org) has a file called
tcl3dUtilColors.tcl. This file contains a list of color names with their
corresponding RGB values and some utility functions.
Hope that helps,
Paul
Ian
Paul@Tcl3D wrote:
--
*********** To reply by e-mail, make w single in address **************
this will help.
Matthias
Ian Gay schrieb: