WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.Source codeContentsIndex
WASH.CGI.PPM
Documentation
data Pixmap Source
Constructors
Pixmap
width :: Int
height :: Int
maximumColorValue :: Int
pixelFun :: Int -> Int -> Pixel
type Pixel = (Int, Int, Int)Source
create :: Int -> Int -> Int -> Pixel -> PixmapSource
oval :: Pixmap -> (Int, Int) -> (Int, Int) -> Pixel -> Bool -> PixmapSource
line :: Pixmap -> (Int, Int) -> (Int, Int) -> Pixel -> PixmapSource
rectangle :: Pixmap -> (Int, Int) -> (Int, Int) -> Pixel -> Bool -> PixmapSource
pixelAt :: Pixmap -> Int -> Int -> PixelSource
type Color = (Int, Int, Int)Source
data Picture Source
Constructors
Circle Bool
Square Bool
Line
Colored Color Picture
Translate (Double, Double) Picture
Rotate Double Picture
Scale (Double, Double) Picture
Invert Picture
And [Picture]
Or [Picture]
render :: Picture -> Int -> Int -> Color -> PixmapSource
Produced by Haddock version 2.6.1