threepenny-gui-0.4.0.1: 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 -> UI ()Source
Draw the image of an image element onto the canvas at a specified position.
clearCanvas :: Canvas -> UI ()Source
Clear the canvas