Instance Property


The rate at which successive octaves of the noise function decrease in amplitude.


var persistence: Double { get set }


Coherent noise is composed from several applications of a pseudorandom function. Each successive application, or octave, increases in frequency and decreases in amplitude relative to the previous octave. This combination of many octaves produces the fractal appearance that makes coherent noise resemble natural phenomena like clouds, stone, and water.

Persistence determines the change in amplitude between octaves. Smaller values result in smoother noise; larger values increase roughness. The default value is 0.5.