ffg-noise
v1.0.6
Published
Perlin Noise Generator for Node.JS
Downloads
2
Readme
FFG Noise
FFG Noise is an implementation of Perlin Noise for Node.JS
Functions
noiseSeed(seed);
noise(x, y);
noise3d(x, y, z);
octaveNoise(x, y, octaves, persistence);
octaveNoise3d(x, y, z, octaves, persistence);
How to Use
Node.JS
var perlin = require("ffg-noise");
var map = [];
perlin.noiseSeed(0940398);
for (var x = 0; x < 10; x++) {
map[x] = [];
for (var y = 0; y < 10; y++) {
map[x][y] = perlin.octaveNoise(x, y, 5, 0.26);
}
}
console.log(map);
Console
node index -x # -y # [-z #] [-o #] [-p #] [-s #]
o - octaves, p - persistence, s - seed