Deterministic simplex noise generator suitable for 2D, 3D and 4D spaces.
Creates a new SimplexNoise instance. This involves some setup. You can save a few cpu cycles by reusing the same instance.
SimplexNoise
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
Samples the noise field in 4 dimensions
Deterministic simplex noise generator suitable for 2D, 3D and 4D spaces.