WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

Safe HaskellSafe-Infered

WASH.CGI.CGIGraphics

Documentation

newImage :: (Int, Int) -> Pixel -> CGIImageSource

drawOval :: CGIImage -> (Int, Int) -> (Int, Int) -> Pixel -> CGIImageSource

fillOval :: CGIImage -> (Int, Int) -> (Int, Int) -> Pixel -> CGIImageSource

drawRectangle :: CGIImage -> (Int, Int) -> (Int, Int) -> Pixel -> CGIImageSource

fillRectangle :: CGIImage -> (Int, Int) -> (Int, Int) -> Pixel -> CGIImageSource

drawLine :: CGIImage -> (Int, Int) -> (Int, Int) -> Pixel -> CGIImageSource

drawPoint :: CGIImage -> (Int, Int) -> Pixel -> CGIImageSource

makeText :: String -> Pixel -> CGIImageSource

overlay :: CGIImage -> CGIImage -> (Int, Int) -> Pixel -> CGIImageSource

type Pixel = (Int, Int, Int)Source

type CGIImage = IO CGIImage'Source

type ActionFun = Int -> Int -> Maybe (CGI ())Source