Simplex Methods

These methods create sequences of simplex noise.

simplex2D

Generates a 2d simplex noise.

Usage
Type Definition
Usage
const SEED = 5;
const sequence: Seq<number> = simplex2D((x, y) => x + y, SEED);
Type Definition
type simplex2D = (
fn: () => [number, number],
seed: number = Date.now()
) => Seq<number>;

simplex3D

Generates a 3d simplex noise.

Usage
Type Definition
Usage
const SEED = 5;
const sequence: Seq<number> = simplex3D((x, y, z) => x + y + z, SEED);
Type Definition
type simplex3D = (
fn: () => [number, number, number],
seed: number = Date.now()
) => Seq<number>;

simplex4D

Generates a 4d simplex noise.

Usage
Type Definition
Usage
const SEED = 5;
const sequence: Seq<number> = simplex4D((x, y, z, w) => x + y + z + w, SEED);
Type Definition
type simplex4D = (
fn: () => [number, number, number, number],
seed: number = Date.now()
) => Seq<number>;