Week 12 : Objects: Modularity and Abstraction pt. II

Homework

Coding Sketch #7: Objects

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

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

Card image cap
Make: Getting Started with p5*js

Chapters 10. Objects

by

LINK

Examples

Other Materials

Key Concepts:
Coding Components: