ppm-2009.5.13: a tiny PPM image generator

Codec.Image.PPM

Description

Example: main = writeFile test.ppm $ ppm [ [ (255, 0, 0) , (0, 255, 0) , (0, 0, 255) ] , [ (255, 255, 0) , (255, 255, 255) , (0, 0, 0) ] ]

Synopsis

Documentation

ppm :: [ColorArray] -> StringSource

output a human readable ppm string, i.e. in p3 format

ppm_p6 :: [ColorArray] -> StringSource

output a compact ppm string, i.e. in p6 format

type Color = (Int, Int, Int)Source