Andrew Gill | 21 Jun 16:44 2014

ANNOUNCE: blank-canvas

Announcing blank-canvas 0.4.0, a Haskell binding to the complete HTML5 Canvas API. 
blank-canvas allows Haskell users to write, in Haskell, interactive images onto their web
browsers, via a specialized JavaScript DSL. 

First Example:

{-# 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
                lineWidth 10
                strokeStyle "red"
                stroke() -- this draws the ink into the canvas

There are around 50 examples on the blank-canvas wiki:


FPG <at> KU

Haskell mailing list
Haskell <at>