gruff-0.4: fractal explorer GUI using the ruff library

Copyright(c) Claude Heiland-Allen 2011
LicenseGPL-2
Maintainerclaude@mathr.co.uk
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Fractal.GRUFF

Description

Support library for rendering animations of the Mandelbrot Set fractal using the gruff executable.

An example program might have a structure similar to:

import Fractal.GRUFF

animation :: Animation
animation = ...

main :: IO ()
main = defaultMain animation

with its output fed to the gruff executable.

See also:

  • the ruff package for feature location algorithms; and
  • the gruff-examples package for concrete examples.

Synopsis

Documentation

type Animation = [(Image, FilePath)] Source #

Animation specification

data Window Source #

Window specification.

Constructors

Window 

Fields

data Location Source #

Location specification (center of view).

Constructors

Location 

Fields

data Colour Source #

RGB colour data (each channel between 0 and 1).

Constructors

Colour !Double !Double !Double 

data Label Source #

Labels can be added to points in the complex plane.

Constructors

Label 

labelAppend :: Complex Rational -> Colour -> String -> Image -> Image Source #

Append a label to an image.

labelPrepend :: Complex Rational -> Colour -> String -> Image -> Image Source #

Prepend a label to an image.

fromScreenCoords :: (Fractional r, Real r) => Window -> Viewport -> Location -> Complex Double -> Complex r Source #

Transform a point from screen coordinates.

toScreenCoords :: Real r => Window -> Viewport -> Location -> Complex r -> Complex Double Source #

Transform a point to screen coordinates.

defaultMain :: Animation -> IO () Source #

Serialize an animation to stdout.