chapter7motion

Rob Schick
5 October 2014

Extending Example 7-11

  • Example 7-11 shows how to change speed based on time
  • Work together to extend this to change colours from black to white

Extending Example 7-13

  • Example 7-13 is a cool function to show three bouncing balls.
  • Work together to extend this to have 5 bouncing balls
  • Make sure they are centered

Changing Pacman Colours

  • Ok, we started off weeks ago trying to draw a pacman, and lo and behold we are returning to them!
  • Take example 7-5 - the reflecting pacman and extend it to:
    • have the pacman change colours along it's left to right axis, white to black
    • when it hits the wall, have it switch the colour ramp and go back to white