Fork of Random lines
✓ Published1🌍 Public
This example displays a grid of 500 randomly generated quadratic curves, each drawn as an SVG path with a random color and size. The visualization demonstrates fundamental SVG shape creation using the raw DOM API, specifically `document.createElementNS` and `setAttributeNS` to construct `<path>` elements with `M` and `Q` commands. The code generates random start and end points across a 1000×1000 coordinate space, assigning each curve a unique RGB stroke color and a fixed 2-pixel width, with fill disabled to show only the line outlines.
AI-generated descriptionDemonstration of SVG shapes.
MIT Licensed