Class noise.SimplexNoise
Ken Perlin's simplex noise implementation.
Defined in: noise.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Generates smooth Simplex noise.
|
| Method Attributes | Method Name and Description |
|---|---|
|
noise(xin, yin)
2d Simplex noise method takes a position in 2d space.
|
|
|
noise3d(xin, yin, zin)
takes a position in 3d space.
|
Class Detail
noise.SimplexNoise(r)
Generates smooth Simplex 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(xin, yin)
2d Simplex noise method takes a position in 2d space.
- Parameters:
- xin
- yin
- Returns:
- a number between 0 and 1.
noise3d(xin, yin, zin)
takes a position in 3d space.
- Parameters:
- xin
- yin
- zin
- Returns:
- a number between 0 and 1.
