Rotating Object
|
ASSIGNMENT:
Click on the canvas area several times and observe what happens. Inspect the
code to see how the triangle is rendered so that it rotates a little with
each click. Be sure that you are able to answer the following questions:
- How many clicks does it take to produce a full rotation of the
triangle?
- What kind of triangle is displayed?
- What would you do to reverse the direction which the triangle
rotates?
Your assignment is to produce a square which rotates in a counter-clockwise
direction.
|