Implementation of ridged multi-fractal noise.
Example of use:
main = putStrLn ("Noise value at (1, 2, 3): " ++ show x) where seed = 1 octaves = 5 scale = 0.005 frequency = 1 lacunarity = 2 ridgedNoise = ridged seed octaves scale frequency lacunarity x = noiseValue ridgedNoise (1, 2, 3)
Documentation
ridged :: Seed -> Int -> Double -> Double -> Double -> RidgedSource
Constructs a ridged multi-fractal noise function given a seed, number of octaves, scale, frequency, and lacunarity.
noiseValue :: Noise a => a -> Point -> DoubleSource
Maps 3-space points to a noise value between -1 and 1 for the given noise function.