Skip to main content
100%

Fork of Fork of Random lines

✓ Published0🌍 Public
NNita
Last edited Jan 3, 2024
Created on Jan 3, 2024

This example displays 500 randomly generated quadratic curves within a 1000-by-1000 SVG canvas. Each curve connects two random points using a quadratic Bézier path, with a stroke color randomly selected from the full RGB spectrum and a fixed stroke width of 2. The code creates SVG `path` elements programmatically via `document.createElementNS` and appends them to the DOM, using the `d` attribute to define the path geometry. Rendering is purely SVG-based, with no external data source or animation.

AI-generated description

Demonstration of SVG shapes.

MIT Licensed

Similar vizzes