wumpus-drawing-0.3.0: High-level drawing objects built on Wumpus-Basic.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Drawing.Paths.Base.BuildCommon

Description

Common data types for the monadic builders.

Synopsis

Documentation

data BuildLog a Source

Monadic builders allow both inserts (patterned after TikZ) which are decorations along the path and sub paths that are stroked and possibly closed.

Instances

data PathEnd Source

Constructors

PATH_CLOSED 
PATH_OPEN 

Instances

extractTrace :: OPlus a => a -> BuildLog a -> (a, a)Source

Extract the pen and insert drawings from a BuildLog.

Any sub-paths traced by the pen are drawn at the back in the Z-order.

addInsert :: a -> BuildLog a -> BuildLog aSource

Add an insert.

This is a decoration drawn at the current point during path building.

addPen :: a -> BuildLog a -> BuildLog aSource

Add a pen drawing.

This is a stroked path sub-path formed prior to a moveto instruction. Moveto is synonymous with pen up - at a pen up and sub-path is drawn as a trace.

insert1 :: a -> BuildLog aSource

Build a trace from an insert.

This is a decoration drawn at the current point during path building.

pen1 :: a -> BuildLog aSource

Build a trace from an insert.

This is a decoration drawn at the current point during path building.