Difference: AdmittedStudentVisitDay (4 vs. 5)

Revision 52017-04-24 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Canvas not supported in this brower
Line: 507 to 507
 Can you try to make it better?
  • Notice how the goes partway off the canvas before bouncing. What is happening? How can we fix this?
  • Change the size of the ball, or the dimensions of the canvas area.
Changed:
<
<
  • Change the color of the ball whenever it hits the wall. (see getRandomColor below. Use getRandomColor() in place of "#0000FF":)
  • Draw and move more than one ball.
>
>
  • Change the color of the ball whenever it hits the wall. (see getRandomColor below. Use getRandomColor() in place of "#0000FF":) *
  • Draw and move more than one ball. *
 
  • Simulate the effects of gravity and friction (the ball's height decreases with each bounce, and the side to side motion slows down)
  • Whatever you can think of! See the links below for some more ideas.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback