threepenny-gui-0.4.0.0: GUI framework that uses the web browser as a display.

Safe HaskellNone

Graphics.UI.Threepenny.Canvas

Contents

Synopsis

Synopsis

Partial binding to the HTML5 canvas API.

Documentation

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