fbm
Generates a fractal Brownian motion (fbm) value based on the provided noise function.
Return
A Double value representing the combined noise, with frequency and amplitude adjusted per octave.
Parameters
The seed value for the noise function, used to ensure consistent output for the same inputs.
The 4D vector representing the coordinates for evaluating noise.
A function that evaluates 4D noise based on a seed and coordinates (x, y, z, w).
The number of noise layers to combine. Higher values produce more detailed noise patterns.
The frequency multiplier for each successive octave.
The amplitude multiplier for each successive octave.
Computes fractal Brownian motion (fBm) using the given noise function.
Return
The resultant fractal Brownian motion value as a Double.
Parameters
An integer seed that initializes the noise generation.
The x-coordinate for the initial noise function.
The y-coordinate for the initial noise function.
The z-coordinate for the initial noise function.
The w-coordinate for the initial noise function.
A higher-order function that generates noise based on the seed and coordinate inputs.
The number of iterations to apply the noise function for calculating fBm. Default is 8.
The frequency multiplier applied at each octave. Default is 0.5.
The amplitude multiplier applied at each octave. Default is 0.5.
Computes fractal Brownian motion (fBm) at a specific 3D position using a given noise function.
Return
A Double representing the computed fractal Brownian motion value at the given position.
Parameters
The base seed for the noise function, used to initialize the random sequence.
The 3D position at which to evaluate the noise.
A lambda function that generates noise based on the seed and 3D coordinates.
The number of iterations to compute the fBm. Defaults to 8.
Controls the frequency of successive octaves. Defaults to 0.5.
Controls the amplitude of successive octaves. Defaults to 0.5.
Computes fractional Brownian motion (fBm) for a given seed, coordinates, and noise function.
fBm is a procedural noise function that generates continuous, fractal-like patterns by combining multiple octaves of noise at different frequencies and amplitudes.
Return
The computed fBm value as a Double.
Parameters
The base seed value for the noise function.
The x-coordinate in the noise space.
The y-coordinate in the noise space.
The z-coordinate in the noise space.
A function that generates noise values given a seed and coordinates x, y, z.
The number of noise octaves to combine. Defaults to 8.
The factor by which the frequency is increased for each octave. Defaults to 0.5.
The factor by which the amplitude is decreased for each octave. Defaults to 0.5.
Computes a fractal Brownian motion (FBM) value for a given 2D position using the provided noise function.
Return
The computed FBM value for the given inputs.
Parameters
The base seed for the noise function.
The 2D vector representing the position in space.
A function that generates noise values, taking the seed, x-coordinate, and y-coordinate as inputs.
The number of layers of noise to generate. Defaults to 8.
The frequency multiplier for each layer of noise. Defaults to 0.5.
The amplitude multiplier for each layer of noise. Defaults to 0.5.
Generates fractional Brownian motion (fBm) using a base noise function. fBm is a technique to produce fractal-like procedural textures or terrains.
Return
The resulting fractional Brownian motion value.
Parameters
Seed value for the noise function to ensure reproducibility.
The x-coordinate input for the noise function.
The y-coordinate input for the noise function.
A base noise function that takes a seed, x, and y, and returns a noise value.
The number of noise layers (also referred to as octaves) to combine. Default is 8.
The frequency multiplier for each successive octave. Default is 0.5.
The amplitude multiplier for each successive octave. Default is 0.5.
Computes the fractional Brownian motion (FBM) value for a given input using a specified noise function.
Return
The computed FBM value as a Double.
Parameters
The seed value to initialize the noise function.
The input value for which the FBM is calculated.
The noise function that generates noise values based on the seed and input.
The number of successive noise layers to combine. Default is 8.
The factor by which the frequency increases for each successive octave. Default is 0.5.
The factor by which the amplitude decreases for each successive octave. Default is 0.5.