Hachure

Matt DesLauriers · 2023

Sample output of Hachure

Hachure continues DesLauriers’ exploration of maps, topography, and the geological processes that shape our world. The artwork takes its name from the cartographic term "hachure," which refers to the parallel lines used to denote terrain heights. This work is created with JavaScript, Zig, and a web browser. Special thanks to Nicholas McDonald for his educational articles and open source software on hydraulic erosion, which was invaluable while developing this project. “It's a study of erosion and a study of landscape and the forms that it creates over many, many, thousands or millions of years where water and wind and other forces are acting on the earth's crust or the earth's terrain and producing these kind of intricate and beautiful results, which itself is a system. In some ways it's a bit of a continuation of my other works where it's thinking about terrain and about how do I take these computational systems and simulate natural process.” - Matt DesLauriers

How it works

index.js fills polygons with hatch lines (hachure/clipPolylinesToBox, resampleLineBySpacing) thresholded by simplex noise and WASM erosion, with catmull-rom/bezier spline polylines.

The core is plotter-like drawing that fills polygons with hatching lines. index.js fills the interior of polygons with evenly spaced parallel lines using hachure / clipPolylinesToBox and resampleLineBySpacing, making surfaces as if shaded with a pen. The fill's density is decided by threshold-dividing regions with simplex noise and a WASM erosion process. The regions' outlines and strokes are smoothed into Catmull-Rom / Bézier spline polylines, and the polygonal mosaic sections combine with the hatch direction to make a distinctive image like a map's contour lines or a print. The noise seed, the degree of erosion, the hatch spacing and the palette change per token, so the lines' expression ranges from sparse and open to densely engraved.

Palette

From the generator script · 134
#000000#8e8e8e#914e72#0078bf#00a95c#3255a4#f15060#3d5588#765ba7#00838a#bb8b41#407060#ff665e#925f52#ffe800#d2515e#ff6c2f#ff48b0#88898a#ac936e#e45d50#ff7477#62a8e5#4982cf#0074a2#235ba8#484d7a#435060#d5e4c0#a5aaa8#70747c#5f8289 +102 more
Extracted from outputs · 8
#1a1a1a#2d2d2d#424242#595959#707070#888888#a1a1a1#c4c4c4

Algorithms

Details

Runtimes
Browser (Canvas / 2D)
Movement
Long-form Generative Art
Medium
Real-time software
Relations
released-on → verse
On-chain
ethereum · 0x78bfb0bbf85b8869b804b06f27ae971a44157cee

Sources

Related works (by shared algorithms)

Cytographia
golan-levin · 2024
Metropolis
mpkoz · 2023
Diggly Collects All
dca · 2025
Blooms
cory-haber · 2024
Antichambre
anaglyphic · 2023
Fushi No Reality - フシノゲンジツ
samsy · 2023
Hello Modulo
nat-sarkissian · 2023
Coalition
generative-artworks · 2023

Last updated 2026-07-16