Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to dynamically rotate geometry in canvas

Status
Not open for further replies.

srhoads

Programmer
Nov 21, 2001
21
US
Anybody have aTCL/TK routine which will dynamically rotate a figure of about 100 lines and arcs while the user drags the mouse in a circular motion?

srhoads@joy.com
 
I must admit, the canvas's lack of a built-in rotation feature is my biggest complaint about an otherwise amazing piece of code.

But you're in luck. Just today on the Tcl'ers Wiki ( Richard Suchenwirth posted an example polygon drawing script that includes the ability to rotate a polygon. You can find it on the page "Drawing and editing polygons," You should be able to adapt that to your needs. - Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top