kokoko12000
Programmer
Hi all,
I am new to Tcl/tk. I have problem to solve. I will attach the problem below. I am really not asking the solution for the problem, but I wanted to know from where to start solving the problem. I have a due in four days. So right now I cannot go through all the tutorial stuff to solve it. SO could anyone please suggest me what are the required topics/lessons should I go through to solve this particular problem.
Problem:
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.
Thank you.
Any suggestions are highyl appreciated.
I am new to Tcl/tk. I have problem to solve. I will attach the problem below. I am really not asking the solution for the problem, but I wanted to know from where to start solving the problem. I have a due in four days. So right now I cannot go through all the tutorial stuff to solve it. SO could anyone please suggest me what are the required topics/lessons should I go through to solve this particular problem.
Problem:
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.
Thank you.
Any suggestions are highyl appreciated.