Skip to content

fbm1D

fbm1D(x, options?): number

Defined in: src/modules/noise/noise.ts:517

Fractal Brownian motion, 1D: octaves of source summed at growing frequency and shrinking amplitude, normalized by the summed absolute amplitude so the result stays in [-1, 1] for any finite option combination — including a negative gain, which yields a difference-of-octaves texture. octaves is floored and capped at 32, and an overflow on any axis (runaway gain / lacunarity / frequency, non-finite coordinate) yields 0 rather than NaN. This is the shape terrain, water and clouds actually sample.

number

Fbm1DOptions = {}

number