AFAIK, PDE’s p5js Mode doesn’t allow the instance mode approach I guess.
The easiest way to run my demo sketches is by having any Firefox-based browser installed in your OS.
I recommend Firefox Developer Edition, Waterfox & Palemoon:
https://www.mozilla.org/en-US/firefox/developer/all/
- Create some folder and then place both files “index.html” & “sketch.js” there.
- Finally open any Firefox-based browser and drag & drop the “index.html” file there.
- It should be run alright now!
P.S.: For Chromium-based browsers, read on this site below: