Interface: perlin1d

syngen.utility.perlin1d

Provides an interface for generating seeded one-dimensional noise. Despite its name, it's not technically Perlin noise; rather, it interpolates between random values along the number line.

Source:
See:
To Do:
  • Document private members

Methods

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

Instantiates a one-dimensional noise generator.

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

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