js-value-noise
v1.0.3
Published
2D/3D Value/Fractal Noise
Downloads
7
Maintainers
Readme
js-value-noise
1.0.3
2D/3D Value Noise in Javascript!
Installation
From npm:
npm install js-value-noise
In browser:
<script src="./jsvaluenoise.min.js"></script>
In NodeJS project:
const vnoise = require("js-value-noise");
Usage
Using fractal noise (6+ octaves for pleasant result):
//Seed can be any number
vnoise.seed = 0;
//Fractal noise returns a value between -2 and 2, depending on # octaves
value = vnoise.fractal2d(x, y, octaves);
value = vnoise.fractal3d(x, y, z, octaves);