WEEK 5 (pixels and animation 2)

Create 5–7 sketches in p5.js. Use each of the following at least once:
  • a conditional statement (if/else if/etc)
  • a for loop or while loop
  • a custom variable
  • a function other than setup() and draw() (this can be another built-in function like keyPressed() or mousePressed(), or a custom function)
  • a user input (keyboard, mouse, webcam, microphone)
  • an element of randomness
Feel free to iterate on your Scratch sketches in p5. Try to spread these out over the course of the week, ideally working on one (at least briefly) every day. Remember: the best way to get good at something is to do it every day.