new PerlinNoise()
A speed-improved perlin and simplex noise algorithms for 2D.
<p>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.</p>
<p>Version 2012-03-09</p>
<p>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.</p>
<p>This code below is copied from <a href='https://github.com/josephg/noisejs/blob/master/perlin.js'>perlin.js</a> and only slightly chnaged to adapt for SQR API.</p>
- 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