🌍 Public
Viewing a saved revision (read-only)
2d2962b5712544afa45d378205ed0b6c
tesT 1
This example demonstrates the SVG fundamentals of creating and styling shapes. It first renders a single static red circle, then uses a JavaScript loop to generate fifty additional circles with random positions, radii, and colors. The code employs the SVG `circle` element and the `createElementNS` API from the DOM to dynamically append shapes to the SVG canvas. Rendering occurs in the browser via a 1000 by 1000 pixel SVG viewport, with data and attributes generated procedurally using `Math.random`.
AI-generated descriptionDemonstration of SVG shapes.