Skip to main content
100%

Compact circles within the Bigger Circle

✓ Published2🌍 Public
NNita
Last edited Mar 31, 2020
Created on Mar 31, 2020
Forked from Compact circles

This example displays a scatter of small circles randomly positioned inside a larger bounding circle, each with varying colors and a green stroke. The visualization generates a grid of potential coordinates and filters them using the Pythagorean theorem to keep only points whose distance from the center is less than the radius of the large circle. The code uses React to render SVG circles, mapping over the filtered array and applying randomization to each point’s position and fill color. The project is built with React and rendered through SVG elements.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes