An open API service indexing awesome lists of open source software.

https://github.com/farazzshaikh/ts-noise

Simple CPU gradient noise library. Now with fBm!
https://github.com/farazzshaikh/ts-noise

3d glsl nodejs noise plugin terrain-generation threejs webgl webgl2

Last synced: about 2 months ago
JSON representation

Simple CPU gradient noise library. Now with fBm!

Awesome Lists containing this project

README

        




TS-Noise


Simple CPU gradient noise library. Now with fBm!


View Demo
·
Report Bug
·
Hire me!




## Installation

```bash
npm i ts-noise
# or
yarn add ts-noise
```

## Usage

```js
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
```