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

«html5canvastutorials version»

{-# LANGUAGE OverloadedStrings #-}
module Main where

import Graphics.Blank

main = blankCanvas 3000 $ \ context -> do
    send context $ do
        (width,height) <- size
        beginPath()
        moveTo(188, 150)
        bezierCurveTo(140, 10, 388, 10, 388, 170)
        lineWidth 10
        -- line color
        strokeStyle "black"
        stroke()
Clone this wiki locally