Random square shapes with react July 4,2022 - 1
✓ Published2🌍 Public
NNita
Last edited Jul 6, 2022
Created on Jul 4, 2022
A generative art piece displays an array of random square shapes, rendered as SVG through React. The code defines a `My_circle` component that draws rectangles with varied stroke widths and colors derived from a mathematical sequence, positioned using sine and cosine functions. Using D3 v7 for DOM selection and React for component rendering, it creates 190 rectangles with randomized RGB values and a drop shadow filter, producing a chaotic, colorful composition against a black background.
AI-generated descriptionReact Starter code.
MIT Licensed