Jump to content

need help in programmin Tcl/Tk...pls


michelle_kewl

Recommended Posts

:( hello everyone....can anyone help me in prorammin Tcl/Tk...?this is a new language for me to program....and iam findin it difficult to do the above program in TCL/TK...pls...help me...

michelle

PROGRAM QUESTION: Design a program capable of digitizing circles. The system should start with a single window containing a grid of 20x20 points.All points should start out grey. The user can then click to place the center of a circle, and then drag to set it's radius, similar to various graphics programs. The circle should be drawn on the screen.When the user releases the mouse button, the program should highlight the points (make them blue) that correspond to the edge of the circle, in a way such that the points could be connected to reconstruct the circle.Then, two additional circles should be created corresponding to the largest and smallest radius of the highlighted points.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...