Due: Thurssday 11/14 10:00am

Submission name: work24_connect

Improve Upon Yesterday’s Work

You can check for a working version of yesterday’s work on thesource. Add the following event listeners:

  • mouse press: add a new point at mouseX, mouseY.
  • ' ': Add a new random point.
  • 'r': Reset the “drawing” so that no lines are drawng. You DO NOT need to modify the arrays to accomplish this task.
  • arrow keys: move all the points up, down, left or right (depending on the key pressed).
  • +: Increase the magnitude of each coordinate by 25%.
  • -: Decrease the magnitude of each coordinate by 25%.
    • Both + and - will also move the “drawing” away from or towards the origin, this is expected and acceptable.