Upgrade HW1 by adding manipulation and animation to the carpet. Add a slider to your web page, starting at 1 and going up to 7; the position of the slider should determine the number of subdivisions of your carpet. In addition, add a button to your page. When the button is clicked, every square of the carpet should start rotating. If you click the button again, the rotation should stop. If you click on the canvas while the squares are rotating, they should invert their rotation.
Submit your code to the respective dropbox in Blackboard. It won't hurt to upload it somewhere, too, and put the link in the submission comments.