noisehx 0.0.1

Generate Perlin noise.

Released 2014-09-15.

To install, run:

haxelib install noisehx 0.0.1

See using Haxelib in Haxelib documentation for more information.

Maintainermadhoe
Websitehttps://github.com/madhoe/noisehx
Current version0.0.1
StatisticsInstalled 22 times
LicensePublic
Tags haxe, noise, perlin

README.md

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...
	}
}