ruff-0.2: relatively useful fractal functions

Portabilityportable
Stabilityunstable
Maintainerclaudiusmaximus@goto10.org

Fractal.RUFF.Mandelbrot.Iterate

Description

Generic (slow) functions to iterate points.

Synopsis

Documentation

data Iterate u r Source

Iteration state.

Constructors

IterSimple 

Fields

itc :: !(Complex r)
 
itz :: !(Complex r)
 
iterUser :: !u
 
IterEscapeTime 

Fields

itc :: !(Complex r)
 
itz :: !(Complex r)
 
itn :: !Int
 
iterUser :: !u
 
IterDistanceEstimate 

Fields

itc :: !(Complex r)
 
itz :: !(Complex r)
 
itdz :: !(Complex r)
 
itn :: !Int
 
iterUser :: !u
 

Instances

Typeable2 Iterate 
(Eq u, Eq r) => Eq (Iterate u r) 
(Data u, Data r) => Data (Iterate u r) 
(Read u, Read r) => Read (Iterate u r) 
(Show u, Show r) => Show (Iterate u r) 

data Output u r Source

Iteration output.

Constructors

OutSimple 

Fields

outUser :: !u
 
OutEscapeTime 

Fields

escapeTime :: !r
 
finalAngle :: !r
 
outUser :: !u
 
OutDistanceEstimate 

Fields

escapeTime :: !r
 
finalAngle :: !r
 
distanceEstimate :: !r
 
outUser :: !u
 

Instances

Typeable2 Output 
(Eq u, Eq r) => Eq (Output u r) 
(Data u, Data r) => Data (Output u r) 
(Ord u, Ord r) => Ord (Output u r) 
(Read u, Read r) => Read (Output u r) 
(Show u, Show r) => Show (Output u r) 

initial :: Num r => Mode -> u -> Complex r -> Iterate u rSource

Iteration initial state.

iterate :: (Ord r, Floating r) => Int -> Iterate u r -> Either (Iterate u r) (Output u r)Source

Iteration engine.

iterates :: (Functor m, Monad m, Ord r, Floating r) => Int -> [Iterate u r] -> (Output u r -> m ()) -> m [Iterate u r]Source

Iterate over a list.