posted 1 year ago
Hi Piet,
Step 4: In sketch.js complete the isInside() function that takes the location of two circles and their diameters and returns true if they overlap, false otherwise. You could check it works, by creating a dummy circle around the mouse and checking if isInside() returns true.
I need Step 4 to work in the sketch, js file only.
The three primary functions the code should be in are function setup(), function draw(), & function isInside(locA, sizeA, locB, sizeB) .