Create Perlin noise.
Check out the demo
To install Noise-Generator, run:
npm install https://github.com/Downmoto/noise-generator
To run tests, run the following command
npm run test
Check demo for more detailed usage
const Noise = require('noise-generator')
let noise = new Noise('apples'); // optional seed
const GRID = 4;
for (let y = 0; y < GRID; y++) {
for (let x = 0; x < GRID; x++) {
let value = noise.perlin(x, y)
}
}