Class: PerlinNoise

SQR. PerlinNoise

Constructor

new PerlinNoise()

A speed-improved perlin and simplex noise algorithms for 2D.

Based on example code by Stefan Gustavson (stegu@itn.liu.se). Optimisations by Peter Eastman (peastman@drizzle.stanford.edu). Better rank ordering method by Stefan Gustavson in 2012. Converted to Javascript by Joseph Gentle.

Version 2012-03-09

This code was placed in the public domain by its original author, Stefan Gustavson. You may use it as you see fit, but attribution is appreciated.

This code below is copied from perlin.js and only slightly chnaged to adapt for SQR API.

Source:

Methods

(static) perlin2(x, y) → {Number}

Parameters:
Name Type Description
x Number
y Number
Source:
Returns:
the noise value in -1 to 1 range
Type
Number

(static) perlin2(x, y) → {Number}

Parameters:
Name Type Description
x Number
y Number
Source:
Returns:
the noise value in -1 to 1 range
Type
Number

(static) perlin3(x, y, z) → {Number}

Parameters:
Name Type Description
x Number
y Number
z Number
Source:
Returns:
the noise value in -1 to 1 range
Type
Number

(static) simplex3(x, y, z) → {Number}

Parameters:
Name Type Description
x Number
y Number
z Number
Source:
Returns:
the noise value in -1 to 1 range
Type
Number