@leodeslf/perlin-noise
v1.1.2
Published
A Perlin Noise library for JavaScript
Downloads
90
Readme
Perlin Noise
_.~^~.__.~^~._
/~^~.______.~^~/\
/^~.________.~^/ /
/~^~.______.~^~/ /
/_.~^~.__.~^~._/ /
/_ /\___________\/
/._/ /
/~./ /
/^~/ /
\__\/
About
A Perlin Noise library for JavaScript.
Features
perlin1D
perlin2D
perlin3D
perlin4D
Install
npm i @leodeslf/perlin-noise
Usage
import { perlin1D } from '@leodeslf/perlin-noise';
console.debug(perlin1D(0.125)); // -0.10894775390625
console.debug(perlin1D(0.120)); // -0.1056811008
console.debug(perlin1D(0.115)); // -0.10229407794375
Live demo here (1D, 2D, 3D, and 4D).
Author
License
MIT License.