Skip to main content
100%

Random circle shapes with react July 4,2022 -1

✓ Published1🌍 Public
NNita
Last edited Jul 6, 2022
Created on Jul 6, 2022

This visualization displays a collection of colorful, randomly generated circles and rectangles on a black background. Using React with D3, the code generates 200 data points through a mathematical formula, mapping them with sine and cosine functions to position shapes across the canvas. Each shape receives randomized stroke widths, opacity values, and RGB color values computed from the data points. The rendering approach combines D3's SVG manipulation with React components, specifically using D3 selection for the background canvas setup and React DOM for the interactive shape generation.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes