ASSIGNMENT:
Inspect the code for this applet carefully. You should notice that the code
is basically the same as code you've seen before which draws a circle.
However, the key difference here is that the variable controlling the length
of the radius grows and shrinks at a regular interval, thus producing the
peaks and valleys you see in the outline of what is otherwise a circle.
Your job is to create two circular saw blades. One will have twenty peaks and valleys and the other will have twelve. Good luck. |