threepenny-gui-0.3.0.0: GUI framework that uses the web browser as a display.
Graphics.UI.Threepenny.Canvas
Contents
Synopsis
Partial binding to the HTML5 canvas API.
type Canvas = ElementSource
type Vector = (Int, Int)Source
drawImage :: Element -> Vector -> Canvas -> IO ()Source
Draw the image of an image element onto the canvas at a specified position.
clearCanvas :: Canvas -> IO ()Source
Clear the canvas