Portability | portable |
---|---|
Stability | unstable |
Maintainer | claudiusmaximus@goto10.org |
Generic functions to render images.
- simpleImage :: (Ord r, Floating r) => Int -> Int -> Complex r -> r -> Int -> UArray (Int, Int) Bool
- complexImage :: (Ord r, Real r, Floating r) => Int -> Int -> Complex r -> r -> Int -> UArray (Int, Int, Int) Float
- imageLoop :: (Ord r, Floating r) => STRef s Int -> a -> Int -> Int -> Bool -> Int -> [Iterate u r] -> (Output u r -> ST s ()) -> ST s a
- coordinates :: (Ord r, Floating r) => Int -> Int -> Complex r -> r -> (((Int, Int), (Int, Int)), [(Tuple2 Int Int, Complex r)])
- ascii :: UArray (Int, Int) Bool -> String
- unicode :: UArray (Int, Int) Bool -> String
Documentation
:: (Ord r, Floating r) | |
=> Int | width |
-> Int | height |
-> Complex r | center |
-> r | radius |
-> Int | max iterations |
-> UArray (Int, Int) Bool | image |
Render an image with the Simple
algorithm. The iteration count is
doubled until the image is good enough, or the fixed maximum iteration
count is reached.
putStr . unicode $ simpleImage 100 100 ((-1.861):+0) (0.001) 1000000000
:: (Ord r, Real r, Floating r) | |
=> Int | width |
-> Int | height |
-> Complex r | center |
-> r | radius |
-> Int | max iterations |
-> UArray (Int, Int, Int) Float | image |
Render an image with the DistanceEstimate
algorithm. The iteration count is
doubled until the image is good enough, or the fixed maximum iteration
count is reached. The output values are converted to Float
.
:: (Ord r, Floating r) | |
=> STRef s Int | escapees |
-> a | output array |
-> Int | max iterations |
-> Int | iterations |
-> Bool | prior escapees |
-> Int | iterations this phase |
-> [Iterate u r] | iterates |
-> (Output u r -> ST s ()) | output callback |
-> ST s a | output array as given |
Image rendering loop.