Skip to content

Lua implementation of the Diamond Square algorithm, with visualization in Love

License

Notifications You must be signed in to change notification settings

kennethdamica/Diamond_Square_Noise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Diamond_Square_Noise

Lua implementation of the Diamond Square algorithm, with visualization in Love (www.love2d.org).

Usage:

ds = require('Diamond_Square_Noise')
size = 513 -- Note that size must be of the form 2^n + 1 for some integer n.
heightmap = ds:create(size)

Diamond_Square_Noise:create() returns a 2D array with values between 0 and 255.

Here's a link to another good implementation of this algorithm in Lua: https://github.com/mlepage/heightmap

About

Lua implementation of the Diamond Square algorithm, with visualization in Love

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages