Week 12 : MIDI CNTRL, Dials
Homework
Coding Sketch #7: Objects
Create a p5 sketch in which you compose *your own* object to animate a shape.
requirements
- accept a color parameter to assign as one of its properties (e.g. this.color)
- define and use 2 methods, one to move and one to show
- the object should be called four different times with four different colors. Call their move and show methods inside the draw loop.
Readings
Make: Getting Started with p5*js
Chapters 10. Objects
by
LINK
Examples
Other Materials