block by dribnet 4744126

strokes: rotating voronoi

Full Screen

Mario Klingemann has made some beautiful Voronoi diagrams. This is my attempt to recreate them using D3. To achieve the curved cells, each side of the Voronoi polygon is subdivided into three equal-length segments and then joined using the “basis-closed” line interpolator. There are some discontinuities in the animation when the sides of a polygon approach zero which could likely be avoided by adding a minimum-length threshold to the subdivision.

If you’d like to see other instances of this pattern, Mario describes the algorithm on Flickr.

A fork and port of mike’s js version (gist/block), for the strokes examples repo.

(merge requests should go to the example in the repo).

index.html

rotating-voronoi.cljs