The videos in the section were created using 2 different editors for p5.js. All of the concepts should still apply, however, there are some minor changes. Most notably in JavaScript let
is now the preferred way to declare a variable over var
. If you would like to learn more about this you can watch this video about let vs var.
- 7.1 What is an array? | Sketch
- 7.2 Arrays and loops | Sketch
- 7.3 Arrays of objects | Sketch
- for...of loop | Sketch
- 7.4 Mouse interaction with objects | Sketch
- 7.5 Removing objects from arrays
- Sketch: Interactive Stripes
- Sketch: An Array of Buttons
- 7.6: Object Communication Part 1
- 7.7: Object Communication Part 2
- Sketch Checking Objects Intersection
- Chapters 10 and 11 of Getting Started with p5.js book | Ebook (free with NYU Library login) | Code