🌍 Public
Viewing a saved revision (read-only)
e5a666b8ebb744ec80ab1c5f40f8db3d
Processing Starter with P5JS
This example presents a recursive fractal pattern of circles, rendered on a 960 by 500 pixel canvas using the P5JS library. The sketch’s `draw()` function calls `drawCircle()` six times, progressively halving the radius and shifting the x-coordinate to branch into two smaller circles per level. Each circle’s fill color is calculated by mapping the recursion level to a grayscale value, creating a subtle gradient across the nested shapes. The P5JS functions `createCanvas()`, `noLoop()`, and `ellipse()` structure the static visualization.
AI-generated descriptionA bare minimum P5JS program.
This is derived from CodePen: Empty Example for P5JS as well as the P5JS Recursion Example.