hsnoise-0.0.3: A coherent 3d noise library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Numeric.Noise.Ridged

Description

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)
 
Synopsis

Documentation

data Ridged Source #

A ridged multi-fractal noise function.

Instances

Instances details
Noise Ridged Source # 
Instance details

Defined in Numeric.Noise.Ridged

ridged :: Seed -> Int -> Double -> Double -> Double -> Ridged Source #

Constructs a ridged multi-fractal noise function given a seed, number of octaves, scale, frequency, and lacunarity.

noiseValue :: Noise a => a -> Point -> Double Source #

Maps 3-space points to a noise value between -1 and 1 for the given noise function.