math docs
    Preparing search index...

    Function ridged

    • Ridged multifractal: like fbm, but each octave is folded to 1 - abs(noise), filling the field with sharp ridges - the classic mountain range / canyon look. Given a source in [-1, 1], returns a value in [0, 1].

      Parameters

      • sample: (frequency: number) => number

        receives an octave frequency, returns the base noise scaled by it

      • octaves: number

        number of octaves to sum

      • lacunarity: number

        frequency multiplier between octaves

      • gain: number

        amplitude multiplier between octaves

      Returns number

      the summed, normalized ridged value