Interface: simplex2d

syngen.utility.simplex2d

Provides an interface for generating seeded two-dimensional OpenSimplex noise.

Source:
See:
To Do:
  • Document private members

Methods

(static) create() → {syngen.utility.simplex2d}

Instantiates a two-dimensional OpenSimplex noise generator.

Parameters:
Name Type Attributes Description
...seeds String <optional>
<repeatable>
Source:
Returns:
Type
syngen.utility.simplex2d

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