ValueNoise

ValueNoise

Value noise is simpler and computationally lighter than Perlin noise yet produce visually similar results when used in fractals.
Only used to define the class. Should never be instantiated.

Constructor

new ValueNoise()

Methods

(static) evaluate1d(px, scale) → {Float}

Evaluates the one-dimensional value noise function at a specific position.

Parameters:
Name Type Description
px Float

Evaluation position x.

scale Float

Base scale. Greater scale values will pull the sources (hills and valleys) further apart.

(static) evaluate2d(px, py, scale) → {Float}

Evaluates the two-dimensional value noise function at a specific position.

Parameters:
Name Type Description
px Float

Evaluation position x.

py Float

Evaluation position y.

scale Float

Base scale. Greater scale values will pull the sources (hills and valleys) further apart.

(static) evaluate3d(px, py, pz, scale) → {Float}

Evaluates the three-dimensional value noise function at a specific position.

Parameters:
Name Type Description
px Float

Evaluation position x.

py Float

Evaluation position y.

pz Float

Evaluation position z.

scale Float

Base scale. Greater scale values will pull the sources (hills and valleys) further apart.

(static) evaluate4d(px, py, pz, pw, scale) → {Float}

Evaluates the four-dimensional value noise function at a specific position.

Parameters:
Name Type Description
px Float

Evaluation position x.

py Float

Evaluation position y.

pz Float

Evaluation position z.

pw Float

Evaluation position w.

scale Float

Base scale. Greater scale values will pull the sources (hills and valleys) further apart.