var perlin = require('perlin-noise');
var noise = perlin.generatePerlinNoise(480, 480);
// noise is an array with length 480 * 480
Returns a one-dimensional of length width * height
in
row-major order. That is, index = y * width + height
.
Each value in the array will be between 0 and 1.
options
(optional)octaveCount
- defaults to 4amplitude
- defaults to 0.1persistence
- defaults to 0.2
Returns a one-dimensional of length width * height
in
row-major order. That is, index = y * width + height
.
Each value in the array will be between 0 and 1.