block by dribnet 4760896

strokes: voronoi clipping

Full Screen

Looking for a small and easy to follow strokes example? You’ve found it.

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).


The Voronoi layout, d3.geom.voronoi, does not provide clipping by default; the returned diagram spans ±1e6. This example demonstrates how to clip the diagram to known dimensions.

index.html

voronoi-clipping.cljs