ts-noise
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

TS-Noise

Simple CPU gradient noise library. Now with fBm!
View Demo · Report Bug · Hire me!

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

Package Sidebar

Install

npm i ts-noise

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

30.5 kB

Total Files

13

Last publish

Collaborators

  • farazshaikh