Dear Wim,

> I was testing the "color add #rrggbb" function in the tcl console. It seems 
> that there is no easy way to figure out the index of your new color, since 
> "color index #rrggbb" is not available any more.

"color index #rrggbb" is available in xcircuit version 3.6, as is a
version of addnewcolorentry() that returns the index value, as your
fix does.  They differ in that I added the option "color index" rather
than extending the command option "color add".  Your solution makes
more sense, since it cannot possibly be helpful for "color add" to
return an index that is not the index of the color passed as the
argument to the command!

I will add your patch to version 3.4 and also make the equivalent
change to 3.6.  This makes the command options "color add" and "color
index" redundant in 3.6, but I can live with that.

Thanks for the patch!
                                        Regards,
                                        Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: [EMAIL PROTECTED]     |
| MultiGiG, Inc.                 | web:   http://www.multigig.com      |
| 100 Enterprise Way, Suite A-3  | phone: (831) 621-3283               |
| Scotts Valley, CA 95066        | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to