🗺️ Diamond-Square Terrain Generator

Fractal heightmaps via iterative midpoint displacement — Stage

...loading...

⚙ Controls

🌐 Grid Size

Grid must be (2n+1)×(2n+1) for the algorithm to work. Larger = more detail, but slower to generate.


🏔 Roughness

Controls how quickly the random displacement shrinks each pass. Low = gentle rolling hills. High = jagged alien peaks.

smooth (0.40) wild (1.00)

🌊 Sea Level

All heights below this threshold are colored as ocean. Drag right to flood the land — like a global sea-level rise model.

dry (0%) flood (95%)

🌞 Color Scheme

Terrain legend: Deep ocean
Shallow sea
Beach / sand
Lowland
Highland
Alpine
Snow peak

🎲 Seed

The same seed always generates the same terrain — the PRNG is deterministic. Click New Seed for a fresh landscape.

Seed: 12345