Skip to content

TypeScript implementation of josephg's noisejs.

License

Notifications You must be signed in to change notification settings

alanko0511/noisejs-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

noisejs-typescript

This is a TypeScript implementation of josephg/noisejs and wrapped as a class. Simply copy the perlin.ts file into your project and you're ready to go.

How to use

import Perlin from './perlin';

// Seed value is optional, default is 0.
const seed = Math.random();
const noise = new Perlin(seed);

// Call the noise functions to get the noise value for that coordinates.
noise.simplex2(x, y);
noise.simplex3(x, y, z);

noise.perlin2(x, y);
noise.perlin3(x, y, z);

Please read the original repo's README for more information.

About

TypeScript implementation of josephg's noisejs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published