🌍 Public
Viewing a saved revision (read-only)
92f04143a7a8400589f5a53a1a7172d6
Random circles
This example shows a dense field of overlapping circles rendered in an SVG, with their positions and colors appearing randomized across the display. Built with React, the component generates a triply-nested loop that creates circles using the `<circle>` element, calculating each `cx` and `cy` position by multiplying array values with `Math.random`. The fill color is derived from the array index arithmetic, producing a gradient-like effect in the RGB scale. The visualization relies on React’s `ReactDOM.render` to mount the SVG into the DOM, with no external data source.
AI-generated descriptionReact Starter code.