ts-noise
v0.0.5
Published
Simple gradient noise library for use with Three.js. Now with fBm!
Downloads
289
Maintainers
Readme
Installation
npm i ts-noise
# or
yarn add ts-noise
Usage
import { Perlin, FBM } from "ts-noise";
// Instantiate. Seed optional
const perlin = new Perlin(seed);
const fbm = new FBM(seed, { ...fbmOptions });
perlin.get2(vector2); // Get 2D Perlin Nosie
perlin.get3(vector3); // Get 3D Perlin Nosie
fbm.get2(vector2); // Get 2D Perlin Nosie with fBm
fbm.get3(vector3); // Get 3D Perlin Nosie with fBm