blank-canvas-0.6: HTML5 Canvas Graphics Library

Copyright(C) 2014-2015, The University of Kansas
LicenseBSD-style (see the file LICENSE)
MaintainerAndy Gill
StabilityBeta
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Graphics.Blank.GHCi

Description

The GHCi entry point for blank-canvas. Useful for sending multiple commands to the same port.

Synopsis

Documentation

splatCanvas :: Options -> Canvas () -> IO () Source

splitCanvas is the GHCi entry point into blank-canvas. A typical invocation would be

GHCi> import Graphics.Blank
GHCi> import Graphics.Blank.GHCi

-- Adding commands to the canvas buffer
GHCi> splatCanvas 3000 $ ( .. canvas commands .. )

The system remembers if it has been called on a specific port before, and if so, uses the previous session.