Skip to content

undefinist/noisehx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

NOTE: hxNoise is probably better, so use that instead!

About

noisehx is a teeny weeny library to generate Perlin noise. The code is a port of noisejs by Joseph Gentle, which is based on Stefan Gustavson's implementation.

Setting up

To install, use the command: haxelib git noisehx https://github.com/madhoe/noisehx.git

Example

// If no seed passed into constructor, a random one is used.
var perlin:Perlin = new Perlin();

for (x in 0...100)
{
	for (y in 0...100)
	{
		var value:Float = perlin.noise2d(x / 10.0, y / 10.0);
		// Do stuff with it...
	}
}

About

Generate Perlin noise in Haxe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages