Rotating Voronoi
Rotating Voronoi shows a set of curved, teal cells that continuously morph as the underlying points move in circular paths. The animation uses D3’s `d3.geom.voronoi` to compute polygons from moving points, which are then clipped to a rectangular boundary. Each polygon side is subdivided into three equal segments and joined with a `basis-closed` line interpolator, creating the smooth curved cell shapes. The SVG paths animate via D3’s timer, with point positions updated over time based on angular velocity.
AI-generated descriptionMario 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.
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4636377'>Rotating Voronoi</a>