Simple CPU gradient noise library. Now with fBm!
View Demo
·
Report Bug
·
Hire me!
npm i ts-noise
# or
yarn add ts-noise
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