| Portability | GHC |
|---|---|
| Stability | unstable |
| Maintainer | stephen.tetley@gmail.com |
Wumpus.Basic.Graphic.Drawing
Description
Drawing with trace and drawing context (i.e. reader monad of attributes - fill_colour etc.).
** WARNING ** - some names are expected to change
particularly the naming of the draw, drawAt, node, ...
functions.
Documentation
Instances
| Monad (Drawing u) | |
| Functor (Drawing u) | |
| Applicative (Drawing u) | |
| DrawingCtxM (Drawing u) | |
| TraceM (Drawing u) |
runDrawing :: DrawingContext -> Drawing u a -> (a, HPrim u)Source
execDrawing :: DrawingContext -> Drawing u a -> HPrim uSource
runDrawingT :: Monad m => DrawingContext -> DrawingT u m a -> m (a, HPrim u)Source
execDrawingT :: Monad m => DrawingContext -> DrawingT u m a -> m (HPrim u)Source
liftToPictureU :: (Real u, Floating u, FromPtSize u) => HPrim u -> Picture uSource
drawAt :: (TraceM m, DrawingCtxM m, u ~ MonUnit m) => Point2 u -> LocGraphic u -> m ()Source
drawConn :: (TraceM m, DrawingCtxM m, u ~ MonUnit m) => Point2 u -> Point2 u -> ConnGraphic u -> m ()Source
drawConnImg :: (TraceM m, DrawingCtxM m, u ~ MonUnit m) => Point2 u -> Point2 u -> ConnImage u a -> m aSource
node :: (TraceM m, DrawingCtxM m, PointSupplyM m, u ~ MonUnit m) => LocGraphic u -> m ()Source