Skip to main content
100%

svg voroni spiral

✓ Published0🌍 Public
11wheel
Last edited Aug 21, 2016
Created on Aug 21, 2016

This example shows a static Voronoi tessellation over a set of random points, with animated spiraling lines tracing each polygon’s edges in sequence. It uses D3’s `d3.geom.voronoi` to compute the polygons from 40 random vertices, clipping them to the SVG canvas, and renders them as SVG `<path>` elements. The animation repeatedly shifts a point along each polygon’s perimeter, drawing a new line segment between consecutive points using `setInterval` and updating the `d` attribute of appended paths. The code relies on D3 3.5.5 and custom helper libraries (`d3-jetpack` and `d3-starterkit`) for concise SVG manipulation, with the overall rendering purely vector-based in SVG.

AI-generated description

Similar vizzes