Thurs 10/11

  • Introduction to classes and objects.
  • Defining a class:

Anatomy of a class (page 124):

  • Declare and initialize a class (eg. use it in your code)
  • Writing a class with arguments (p. 132)

Exercises:

  • Read Chapter 8. Still confused? Try these video tutorials from Shiffman on classes.
  • In Learning Processing do exercises: 8.1, 8.2.
  • Also 8.5: See code for the bouncing_ball_gravity here. First break draw() out into functions, then add a ball class! Make a sketch with 100 balls of random colors (use an array).
  • Work on the Visualizing Time project.