block by nitaku 6166918

Hex landscape

Full Screen

Forked from another example, that was in turn forked from one by Mike Bostock.

Click and drag above to increase hexagons’ height, forming hills and mountains. 10 is the maximum height. Press shift when clicking to decrease it. You can even create lakes and coastlines. 10 is the maximum depth.

Contour lines are computed automatically, by leveraging TopoJSON’s mesh function.

index.js

index.html

index.coffee

index.css

index.sass