The latest version of blank-canvas is 0.7.4-4.

blank-canvas

Version 0.5 revision 0 uploaded by AndyGill.

Package meta

Synopsis
HTML5 Canvas Graphics Library
Description

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.

Author
Andy Gill and Ryan Scott
Bug reports
https://github.com/ku-fpg/blank-canvas/issues
Category
Graphics
Copyright
Copyright (c) 2014 The University of Kansas
Homepage
https://github.com/ku-fpg/blank-canvas/wiki
Maintainer
andygill@ku.edu
Package URL
n/a
Stability
beta

Components