Constructor
new SimplexNoise(seedopt)
Create a noise object
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
seed |
number | string | Array |
<optional> |
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, y, zopt, wopt) → {number}
Get the noise value at a given point
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
x |
number | x-coordinate | ||
y |
number | 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: