Creates a new SimplexNoise
instance.
This involves some setup. You can save a few cpu cycles by reusing the same instance.
A random number generator or a seed (string|number). Defaults to Math.random (random irreproducible initialization).
Samples the noise field in 2 dimensions
a number in the interval [-1, 1]
Samples the noise field in 3 dimensions
a number in the interval [-1, 1]
Samples the noise field in 4 dimensions
a number in the interval [-1, 1]
Generated using TypeDoc
Deterministic simplex noise generator suitable for 2D, 3D and 4D spaces.