simplex-noise
☞ Demo
Simplex Perlin Noise Generator
Ported from Stefan Gustavson's java implementation Read Stefan's excellent paper for details on how this code works.
This component
version is cloned from the gist by Sean McCullough
Installation
$ component install mnmly/simplex-noise
Usage
var Noise = require('simplex-noise')
, generator = new ClassicalNoise();
// => returns number between `[-1, 1]`
console.log(generator.noise(0.001, 0, 0));
// => returns random number but close enough to the value above.
console.log(generator.noise(0.001 + 0.001, 0, 0));
License
MIT