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.AbsBuilder

Contents

Description

Build absolute paths monadically.

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

Synopsis

Documentation

data AbsBuild u a Source

Absolute Path builder monad.

runAbsBuild :: (Floating u, InterpretUnit u) => Point2 u -> AbsBuild u a -> (AbsPath u, Graphic u)Source

Note - runAbsBuild drops the monadic answer and returns the constructed path and a trace of the inserts and sub-paths.

execAbsBuild :: (Floating u, InterpretUnit u) => Point2 u -> AbsBuild u a -> Graphic uSource

Run an AbsBuild - return the Graphic formed by the pen trace and the insert trace, forget the outline of the path.

evalAbsBuild :: (Floating u, InterpretUnit u) => Point2 u -> AbsBuild u a -> AbsPath uSource

Run an AbsBuild - return the outline of the path, forget the Graphic formed by the pen trace and the insert trace.

absmove :: (Floating u, Ord u, Tolerance u, InterpretUnit u) => Point2 u -> AbsBuild u ()Source

absmove is a pen up.

relcurve :: (Floating u, Ord u, Tolerance u) => Vec2 u -> Vec2 u -> Vec2 u -> AbsBuild u ()Source

Derived operators

line_up_left :: Floating u => u -> AbsBuild u ()Source

Diagonal lines

move_up_left :: (Floating u, Ord u, Tolerance u, InterpretUnit u) => u -> AbsBuild u ()Source

Diagonal moves