Skip to content
A Perlin Noise library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Perlin Noise Deno

A simple to use perlin noise module for typescript.


PerlinNoise Class

The class that handles PerlinNoise generation.

const perlin = new PerlinNoise(permuation?: numbers[])

permutiation (numbers[]) is an optional parameter to set the permutations used by the system


perlin.noise(x: number, y: number, z: number, min?: number, max?: number)

x (number) X cordinate

y (number) X cordinate

z (number) X cordinate

min (number) not required, default 0. Minium value generated.

max (number) not required, default 1. Maxium value generated

Will return a perlin noise random value between min and max


import {PerlinNoise} from '';

const perlin = new PerlinNoise();

console.log(perlin.noise(0.1, 0.1, 0.1));


This is a port of Kas Thomas' javascript function which is a port of Ken Perlin's Java code. Kas Thomas' code can be found at Ken Perlin's code can be found at So really most of the work was done by them, I simply ported Kas' version to typescript by adding a few types to the functions

You can’t perform that action at this time.