IFS-0.1: Iterated Function System generation for HaskellContentsIndex
Graphics.IFS.Ppm
Portabilityportable
Stabilityexperimental
Maintainermisc@alpheccar.org
Contents
Color formats
Picture Creation
Some standard colors
Coloring functions
Description

Description

Portable Pixel Map

Synopsis
data Color = RGB Word8 Word8 Word8
createPict :: String -> Int -> Int -> Int -> ColorizeFunction -> IFS Double -> IO ()
red :: Color
green :: Color
blue :: Color
white :: Color
black :: Color
type ColorizeFunction = Word8 -> [Word8] -> [Word8]
binaryColor :: Color -> Color -> Word8 -> [Word8] -> [Word8]
densityColor :: Int -> Color -> Color -> Word8 -> [Word8] -> [Word8]
Color formats
data Color
RGB Color
Constructors
RGB Word8 Word8 Word8
show/hide Instances
Picture Creation
createPict
:: StringName of file
-> IntPicture width
-> IntPicture height
-> IntNb of pixels to compute
-> ColorizeFunctionHow to colorize the result
-> IFS DoubleIFS
-> IO ()Output action
Create a PPM picture.
Some standard colors
red :: Color
Red color
green :: Color
Gree color
blue :: Color
Blue color
white :: Color
white color
black :: Color
Black color
Coloring functions
type ColorizeFunction = Word8 -> [Word8] -> [Word8]
The type of a coloring functions. The first argument is an index value and the second argument is a list of RGB value. The function is assumed to concatenate a new triple of RGB value to the list
binaryColor
:: ColorBackground Color for index null
-> ColorForeground Color for index not null
-> Word8Index
-> [Word8]List of RGB values
-> [Word8]List of RGB values
Binary coloring
densityColor
:: IntScaling factor
-> ColorBackground Color for index null
-> ColorForeground Color for index not null
-> Word8Index
-> [Word8]List of RGB values
-> [Word8]List of RGB values
Density coloring with linear interpolation
Produced by Haddock version 0.8