Class: SimplexNoise

SimplexNoise(seed)

Class handling simplex noise. This class interfaces with the SimplexNoise library by Jonas Wagner. The number generation is taken care of by my xor128 library.

Constructor

new SimplexNoise(seed)

Create a noise object
Parameters:
Name Type Default Description
seed Number | String | Array null The seed for the noise (optional)
Source:

Members

falloff

Set the falloff of the noise
Source:

falloff

Get the falloff of the noise
Source:

max_value

Get the maximum value of the noise
Source:

min_value

Get the minimum value of the noise
Source:

octaves

Set the number of octaves to use
Source:

octaves

Get the number of octaves to use
Source:

Methods

noise(x, yopt, zopt, wopt) → {number}

Get the noise value at a given point
Parameters:
Name Type Attributes Default Description
x number x-coordinate
y number <optional>
null y-coordinate
z number <optional>
null z-coordinate
w number <optional>
null w-coordinate
Source:
Returns:
Noise value at the given point in range [-1, 1]
Type
number

setDetail(octaves, falloff)

Parameters:
Name Type Default Description
octaves number 1 Number of octaves to use
falloff number 0.5 Falloff of the noise
Source: