Reference noiseSeed()

noiseSeed()

Sets the seed value for the noise() function.

By default, noise() produces different results each time a sketch is run. Calling noiseSeed() with a constant argument, such as noiseSeed(99), makes noise() produce the same results each time a sketch is run.

Examples

Syntax

noiseSeed(seed)

Parameters

seed

seed value.

Notice any errors or typos? Please let us know. Please feel free to edit src/math/noise.js and open a pull request!

Related References