Skip to content
Andy Gill edited this page Jun 18, 2014 · 36 revisions

Background

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 users a single full-window canvas, and provides many well-documented functions for rendering images.

Installation

cabal install blank-canvas

That's it! If you want the examples,

cabal install blank-canvas-examples

We recommend downloading the blank-canvas-examples repo and building by hand, simply because you then have the source to start experimenting with.

Documentation

Link Notes
Examples Various complete examples of using blank-canvas
Hackage Current release is 0.4.0
API Discussion of API, compared with the original JavaScript API
Canvas Tutorial Transliterated from http://www.html5canvastutorials.com/ into Haskell and blank-canvas, with kind permission of Eric Rowell, author of the JavaScript HTML5 Canvas Tutorial.

Other Links

Clone this wiki locally