The blank-canvas package

[Tags: bsd3, library]

blank-canvas is a Haskell binding to the complete HTML5 Canvas API. blank-canvas allows Haskell users to write, in Haskell, interactive images onto their web browsers. blank-canvas gives the user a single full-window canvas, and provides many well-documented functions for rendering images.

{--}
module Main where
import Graphics.Blank                     -- import the blank canvas

main = blankCanvas 3000 $ \ context -> do -- start blank canvas on port 3000
  send context $ do                       -- send commands to this specific context
    moveTo(50,50)
    lineTo(200,100)
    lineWidth 10
    strokeStyle red
    stroke()                              -- this draws the ink into the canvas

For more details, read the blank-canvas wiki.


Properties

Versions0.2.0, 0.2.0.1, 0.2.2, 0.2.3, 0.2.3.1, 0.2.3.2, 0.3.1, 0.4.0
Dependenciesaeson (==0.7.*), base (>=4.3.1 && <4.8), bytestring (==0.10.*), containers (==0.5.*), http-types (==0.8.*), kansas-comet (==0.3.*), network (>=2.4 && <2.6), scotty (==0.8.*), stm (>=2.2 && <2.5), text (==1.1.*), transformers (>=0.3 && <0.5), vector (==0.10.*), wai (==3.*), wai-extra (==3.*), warp (==3.*)
LicenseBSD3
CopyrightCopyright (c) 2014 The University of Kansas
AuthorAndy Gill
Maintainerandygill@ku.edu
Stabilitybeta
CategoryGraphics
Home pagehttps://github.com/ku-fpg/blank-canvas/wiki
Bug trackerhttps://github.com/ku-fpg/blank-canvas/issues
Source repositoryhead: git clone git://github.com/ku-fpg/blank-canvas.git
Upload dateSat Jun 21 05:33:39 UTC 2014
Uploaded byAndyGill
Downloads696 total (54 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees