🌍 Public
Viewing a saved revision (read-only)
37dcf8bdf6374864be3be7a4f7617a8b
P5JS Starter
This example displays a recursive fractal pattern of concentric circles that shrink and branch outward symmetrically from the center of the canvas. The sketch uses the P5JS library with a setup function that creates a 960x500 canvas and disables animation via noLoop(), while the draw function calls drawCircle to render the structure. Each circle’s fill color darkens progressively with recursion depth, computed from the level parameter. The code relies on P5JS’s ellipse and fill methods, with recursive calls splitting each circle into two smaller ones.
AI-generated descriptionA bare minimum P5JS program.
This is derived from CodePen: Empty Example for P5JS as well as the P5JS Recursion Example.