block by Kcnarf 95fbcdb4e58a4e048867667c23071a28

Animated Voronoï map

Full Screen

This block shows the two ways of using the new (as of 03 oct. 2018) v2 major release of the d3-voronoi-map:

Take a look at the code of the ‘loop’ function to understand how to use this feature.

Because this block focus on demonstrating how to animate the Voronoï map from scratch, each iteration is independant from the others, meaning that each iteration computes the Voronoï map of a totally new set of weights. If you’re interested in updating an existing Voronoï map from an old set of weights to a set of new ones, take a look at the Update & Animate a Voronoï map block.

User interactions :

Acknowledgments to :