perlin noise functions
Note: noise module must be loaded by calling LoadLibrary("noise") before using!
- See:
-
- LoadLibrary()
Methods
# inner Noise(x, yopt, zopt, wopt) → {number}
1D, 2D, 3D and 4D float Perlin noise.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
x |
number | x-coordinate in noise space |
|
y |
number |
<optional> |
y-coordinate in noise space |
z |
number |
<optional> |
z-coordinate in noise space |
w |
number |
<optional> |
w-coordinate in noise space |
Perlin noise value (between 0 and 1) at specified coordinates.
number
# inner SNoise(x, yopt, zopt, wopt) → {number}
1D, 2D, 3D and 4D float Perlin simplex noise
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
x |
number | x-coordinate in noise space |
|
y |
number |
<optional> |
y-coordinate in noise space |
z |
number |
<optional> |
z-coordinate in noise space |
w |
number |
<optional> |
w-coordinate in noise space |
Perlin simplex noise value (between 0 and 1) at specified coordinates.
number