Portability | GHC |
---|---|
Stability | unstable |
Maintainer | stephen.tetley@gmail.com |
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
runDrawing :: DrawingContext -> Drawing u -> Maybe (Picture u)Source
runDrawingU :: DrawingContext -> Drawing u -> Picture uSource
drawTracing :: (Real u, Floating u, FromPtSize u) => TraceDrawing u a -> Drawing uSource