4B – Thurs Sept 27

Introduction to Arrays

  • Declare, fill and use an array.
  • Living line I: Create a line that connects the past 100 mouse positions.
  • Living line II: Create a line using the past 100 mouse positions and move an ellipse over the line in cycles.

  • Extension: Living line III, Create a line using the past 100 mouse positions. Bring your line to life by adding some randomness to each point. The randomness should increase with older mouse positions.
  • Finish the Claire Evans reading from last lesson.

Due next Tuesday:

  • Revise and Prepare for the class quiz. It may cover.
    • variables (different types), system variables, difference between global and local variables.
    • boolean expressions
    • conditional statements (if, else, else if),
    • logical operators (&& || !)
    • events (mousePressed, keyPressed).
    • map(), constrain(), dist() functions
    • writing custom functions,
    • for loops

You will be given a cheat sheet that looks like this: CheatSheet-processingQuiz