I have 2 sketches and I want to switch those two using an element (select, button, etc...) on a webpage. Normally, I just add script tag to show a sketch but now I don't know how to switch multiple sketches. Does anyone know how to solve this? Many thanks
Answers
I suppose you could use instance mode:
Or you can show/hide each canvas separately: http://p5js.sketchpad.cc/sp/pad/view/0x7sIg4j4u/latest
Kf
Thanks mate, I'll try this method