Class Index | File Index

Classes


Class noise.SimplexNoise

Ken Perlin's simplex noise implementation.
Defined in: noise.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Generates smooth Simplex noise.
Method Summary
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.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Nov 09 2012 21:19:31 GMT+0800 (WST)