WashNGo-2.12: WASH is a family of embedded domain specific languages (EDSL) for programming Web applications in Haskell.ContentsIndex
WASH.CGI.PPM
Documentation
data Pixmap
Constructors
Pixmap
width :: Int
height :: Int
maximumColorValue :: Int
pixelFun :: (Int -> Int -> Pixel)
show/hide Instances
type Pixel = (Int, Int, Int)
create :: Int -> Int -> Int -> Pixel -> Pixmap
oval :: Pixmap -> (Int, Int) -> (Int, Int) -> Pixel -> Bool -> Pixmap
line :: Pixmap -> (Int, Int) -> (Int, Int) -> Pixel -> Pixmap
rectangle :: Pixmap -> (Int, Int) -> (Int, Int) -> Pixel -> Bool -> Pixmap
pixelAt :: Pixmap -> Int -> Int -> Pixel
type Color = (Int, Int, Int)
data Picture
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 -> Pixmap
Produced by Haddock version 0.8