Fractal Mountains

These mountains are generated with midpoint displacement: start with two random points, repeatedly split each segment, and nudge the midpoint by a random amount that shrinks with each pass. The result is a jagged range that looks natural at any level of detail. Every range is driven by a random seed, so the same seed always renders the same mountains.

Use the buttons above the game to go fullscreen and open the settings menu (re-render, roll a new random seed, get the current seed, change the detail, and randomize the colors).

This toy was built using AI-assisted development with OpenCode, powered by the oMLX framework running the Qwen3.8-27B-OptiQ 4-bit model locally.