7.6: Clicking on Objects - p5.js Tutorial
Code for this tutorial
(I skipped 7.5 and need to go back to it.)
How to make the color change when you click on a circle.
Be careful to NOT use p5 names when you make functions.
Also don't call them "porcupine".
Call them something that make sense given what it does!
He explains the dist() function for distance.