wumpus-basic-0.13.0: Common drawing utilities built on wumpus-core.

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Basic.Graphic.Drawing

Description

A Drawing object.

This is the corresponding type to Picture in the Wumpus-Core.

Drawing is a function from the DrawingContext to a Picture. Internally the result is actually a (Maybe Picture) and not a Picture, this is a trick to promote the extraction from possibly empty drawings (created by TraceDrawing) to the top-level of the type hierarchy where client code can deal with empty drawings explicitly (empty Pictures cannot be rendered by Wumpus-Core).

Documentation

data Drawing u Source

Instances

(Real u, Floating u) => Rotate (Drawing u) 
(Real u, Floating u) => RotateAbout (Drawing u) 
(Num u, Ord u) => Scale (Drawing u) 
(Num u, Ord u) => Translate (Drawing u) 

clipDrawing :: (Num u, Ord u) => PrimPath u -> Drawing u -> Drawing uSource