Class noise.PerlinNoise
Classical Perlin noise implementation.
Defined in: noise.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Generates smooth Perlin noise.
|
| Method Attributes | Method Name and Description |
|---|---|
|
noise(x, y, z)
|
Class Detail
noise.PerlinNoise(r)
Generates smooth Perlin noise. Ported from Stefan Gustavson's Java implementation by Sean McCullough. Original source here: https://gist.github.com/304522
- Parameters:
- r
- is optionally a random number generator which has a .random() method (such as jsGameSoup's own SeedableRandom())
Method Detail
noise(x, y, z)
- Parameters:
- x
- y
- z
- Returns:
- a number between 0 and 1.
