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

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

Wumpus.Drawing.Paths.Base.PathBuilder

Description

Build relative paths monadically.

** WARNING ** this module is an experiment, and may change significantly or even be dropped from future revisions.

Synopsis

Documentation

data Vamp u Source

Constructors

Vamp 

runGenPathSpec :: InterpretUnit u => GenPathSpec st u a -> st -> PathTerm -> LocImage u (a, st, RelPath u)Source

runPivot :: (Floating u, InterpretUnit u) => PathSpec u a -> PathSpec u a -> LocGraphic uSource

Form a "pivot path" drawing from two path specifications. The start point of the drawing is the pivot formed by joining the paths.

penline :: InterpretUnit u => Vec2 u -> GenPathSpec st u ()Source

Extend the path with a line, drawn by the pen.

pencurve :: InterpretUnit u => Vec2 u -> Vec2 u -> Vec2 u -> GenPathSpec st u ()Source

Extend the path with a curve, drawn by the pen.