Portability | portable |
---|---|
Stability | experimental |
Maintainer | misc@alpheccar.org |
Description
Portable Pixel Map
- 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
Picture Creation
:: String | Name of file |
-> Int | Picture width |
-> Int | Picture height |
-> Int | Nb of pixels to compute |
-> ColorizeFunction | How to colorize the result |
-> IFS Double | IFS |
-> IO () | Output action |
Create a PPM picture.
Some standard colors
Coloring functions
type ColorizeFunction = Word8 -> [Word8] -> [Word8]Source
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