 | IFS-0.1: Iterated Function System generation for Haskell | Contents | Index |
|
| Graphics.IFS | | Portability | portable | | Stability | experimental | | Maintainer | misc@alpheccar.org |
|
|
|
|
|
| Description |
Description
Iterated Function Systems in Haskell
|
|
| Synopsis |
|
|
|
|
| Types
|
|
| data IFS a |
| An IFS is expressed in a [0,1]x[0,1] squares. So, the linear transforms used to build it must take that into account.
| Instances | |
|
|
| type Pixel = (Int, Word8) |
| A position in an array of pixels and the color index
|
|
| Drawing an IFS
|
|
| drawIFS |
| :: Int | Width of the IFS square in pixel (the IFS is contained in a [0,1]x[0,1] square)
| | -> Int | Height of the IFS square
| | -> Int | Number of pixels to generate
| | -> IFS Double | The IFS
| | -> [Pixel] | List of pixels
| | Draw an IFS
|
|
|
| IFS creation functions
|
|
| (<+>) :: IFS a -> IFS a -> IFS a |
| Union of two IFS (probabilities are normalized if required when the IFS is drawn)
|
|
| (<?>) :: Double -> IFS a -> IFS a |
| Multiply IFS probabilities
|
|
| linearIFS :: M a -> IFS a |
| Create a linear IFS from an affine transformation
|
|
| Produced by Haddock version 0.8 |