generates a fractal landscape, running water and erosion.
- rain
- rain erosion
- erosion
- smooth out / collapse
- settling of water
- leveling of water
these features are toggled with the buttons or using the r, s, l, e keys.
to generate a world (2^n + 1) * (2^n + 1) using midpoint displacement.
var w = world(7);
the method uses recursion randomly generating heights as we recurse deeper
_scale = (n) => Math.exp(-n / 1.5)
- ux
- make buttons show toggle status
- add size, scaling and roughness controls
- export function?
- scaleable display (not fixed)
- 3d representation?
- geology
- improve algorithm for water erosion
- improve algorithm for natural erosion
- javascript
- optimise
- parallel?