Week 13 : Arrays: From Abstraction to Actual

Homework

Coding Sketch: Objects and Arrays

Create a p5 sketch in which you compose *your own* object to animate a shape.

Bonus, use arrays to create and control multiple objects

requirements

  1. accept a color parameter to assign as one of its properties (e.g. this.color)
  2. define and use 2 methods, one to move and one to show
  3. the object should be called four different times with four different colors. Call their move and show methods inside the draw loop.

Readings

Examples

Other Materials

Key Concepts:
Coding Components: