p5.js global mode versus instance mode for multiple sketches on one page
Goal: run multiple independent p5.js sketches on a single HTML page without variable name collisions or shared canvas interference. In p5.js 1.x, global mode attaches sketch logic to the window object, which is convenient for one sketch but risks collisions when several sketches share a page. Instance mode wraps each sketch in a function that receives a p5 o