Fork of P5.js Starter
This example shows three nested circular targets rendered on a canvas, based on the P5.js *Functions* example. It demonstrates how to integrate P5.js with VizHub’s hot-reloading environment. The code imports the `p5` library and reuses its functions—`createCanvas`, `background`, `noStroke`, `fill`, and `ellipse`—by extracting and binding them from the instance. It also manually attaches `setup` and `draw` functions to the instance. The sketch measures the container’s dimensions to size the canvas and uses `noLoop()` for a static display.