/example-diamond-square

Example of the diamond square algorithm and procedural generation.

Primary LanguageLuaMIT LicenseMIT

Diamond Square

Example of the diamond square algorithm and procedural generation.

Watch the reference video:
https://www.youtube.com/watch?v=4GuAV1PnurU

Play with the interactive HTML5 demo:
https://klaytonkowalski.github.io/bundles/diamond-square/index.html

Please click the ☆ button on GitHub if this repository is useful or interesting. Thank you!

alt text

Controls

Control Description
Left Click Generate a new map.
Right Click Scroll across the map.
1 Use grayscale graphics.
2 Use colored graphics.
3 Decrease the random scalar.
4 Increase the random scalar.