The repository does not appear to include any code that defines the variable p, which leaves me uncertain about its purpose. What is the significance of the 'p' parameter in the function, and why is it needed?
The general structure of the code is as follows:
const sketch = function(p) {
...
p.setup = function(){...}
p.mousePressed = function () {...}
p.mouseReleased = function () {...}
p.mouseDragged = function () {...}
p.draw = function() {...}
...
}
...
new p5(sketch, 'sketch');