wumpus-basic-0.9.0: Common drawing utilities built on wumpus-core.

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

Wumpus.Basic.Paths.Connectors

Description

Extended path type - more amenable for complex drawings than the type in Wumpus-Core.

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

Synopsis

Documentation

type ConnPath u = Point2 u -> Point2 u -> Path uSource

joint :: (Real u, Floating u) => u -> ConnPath uSource

fillPath :: Num u => Path u -> Graphic uSource

Closes and fills a path

shorten :: (Real u, Floating u, Ord u) => u -> Path u -> Path uSource

shortenL :: (Real u, Floating u, Ord u) => u -> Path u -> Path uSource

shortenR :: (Real u, Floating u, Ord u) => u -> Path u -> Path uSource

midpoint :: (Real u, Floating u) => Path u -> Point2 uSource