This video looks at p5.js “instance mode”. The techniques demonstrated are useful for “namespacing” your sketch (so that there are no conflicts with other libraries or other global variables). It is also useful if you want to have more than one canvas on the same web page.



All JavaScript/p5.js videos:

Help us caption & translate this video!