Provides an interface for generating seeded one-dimensional noise.
- Source:
- See:
- To Do:
-
- Document private members
Methods
(static) create() → {syngen.tool}
Instantiates a one-dimensional noise generator.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
...seeds |
String |
<optional> <repeatable> |
- Source:
Returns:
- Type
- syngen.tool
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) → {Number}
Calculates the value at x.
Parameters:
| Name | Type | Description |
|---|---|---|
x |
Number |
- Source:
Returns:
- Type
- Number