In part 7 of the p5.js tutorials we talk about how you can interact with objects on the canvas.
Mouse Interaction with Objects16 Oct 2017
How can an object interact with the mouse? This video looks at how you can implement basic mouse interaction (rollover, mousePressed) with your own code and HTML5 canvas.
Removing Objects from Arrays17 Oct 2017
This video covers the “splice” function to delete / remove objects from an array.
Object Communication Part 113 Dec 2017
This video covers how to determine if two circles are overlapping (intersecting) in a p5.js sketch. The functionality is demonstrated with an object-oriented approach.
Object Communication Part 214 Dec 2017
This is a continuation of my previous video where I explore shape intersection with object-oriented programming. Here, I demonstrate how to use a nested loop to check every object’s position against every other object.
Objects and Images16 Dec 2017
This video explores how to load and display images as objects with p5.js.