blank-canvas: HTML5 Canvas Graphics 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.
{-# LANGUAGE OverloadedStrings #-}
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.
[Skip to Readme]
Downloads
- blank-canvas-0.5.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.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, 0.5, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.7, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.7.5 |
|---|---|
| Change log | Changelog.md |
| Dependencies | aeson (>=0.7 && <0.9), base (>=4.3.1 && <4.8), base64-bytestring (>=1.0 && <1.1), bytestring (>=0.10 && <0.11), colour (>=2.2 && <3.0), containers (>=0.5 && <0.6), data-default-class (>=0.0 && <0.1), http-types (>=0.8 && <0.9), kansas-comet (>=0.3 && <0.4), scotty (>=0.8 && <0.10), stm (>=2.2 && <2.5), text (>=1.1 && <1.3), transformers (>=0.3 && <0.5), vector (>=0.10 && <0.11), wai (>=3 && <4), wai-extra (>=3.0.1 && <3.1), warp (>=3 && <4) [details] |
| License | BSD-3-Clause |
| Copyright | Copyright (c) 2014 The University of Kansas |
| Author | Andy Gill and Ryan Scott |
| Maintainer | andygill@ku.edu |
| Uploaded | by AndyGill at 2014-09-20T03:33:54Z |
| Revised | Revision 1 made by ryanglscott at 2015-07-23T15:52:04Z |
| Category | Graphics |
| Home page | https://github.com/ku-fpg/blank-canvas/wiki |
| Bug tracker | https://github.com/ku-fpg/blank-canvas/issues |
| Source repo | head: git clone git://github.com/ku-fpg/blank-canvas.git |
| Reverse Dependencies | 5 direct, 27 indirect [details] |
| Downloads | 21564 total (61 in the last 30 days) |
| Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |