Fork of Random Squares and circles
✓ Published2🌍 Public
This gallery item demonstrates the visual result of overlaying randomly generated SVG shapes. Using an HTML5 `<svg>` canvas, the code executes three separate JavaScript loops to populate the space with 500 `<rect>` elements, 200 `<circle>` elements, and 100 `<polygon>` elements representing triangles. Each shape receives a random RGB color from a palette generated with `Math.random()`, as well as random positioning within the 1000-by-1000 pixel viewport and a random size up to 50 pixels. The visualization showcases how combining basic geometric primitives with randomized attributes can create a colorful, abstract composition.
AI-generated descriptionDemonstration of SVG shapes.
MIT Licensed