Provides an interface for generating seeded two-dimensional Perlin noise.
- Source:
- See:
- To Do:
-
- Document private members
Methods
(static) create() → {syngen.utility.perlin2d}
Instantiates a two-dimensional Perlin noise generator.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
...seeds |
String |
<optional> <repeatable> |
- Source:
Returns:
reset()
Clears all generated values.
Implementations are encouraged to call this whenever syngen.seed
is set, syngen.state
is reset, or memory becomes an issue.
- Source:
value(x, y) → {Number}
Calculates the value at (x, y)
.
Parameters:
Name | Type | Description |
---|---|---|
x |
Number | |
y |
Number |
- Source:
Returns:
- Type
- Number