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

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

Wumpus.Drawing.Arrows.Connectors

Description

Draw arrows.

Synopsis

Documentation

type ArrowConnector u = ConnectorImage u (Path u)Source

A connector with arrow tips. The connector is an Image, drawing it returns the path - positions can be taken on the path (e.g. midpoint) for further decoration.

leftArrow :: (Real u, Floating u) => Arrowhead u -> ConnectorPath u -> ArrowConnector uSource

Connector with an arrow tip at the start point / left.

rightArrow :: (Real u, Floating u) => Arrowhead u -> ConnectorPath u -> ArrowConnector uSource

Connector with an arrow tip at the end point / right.

leftRightArrow :: (Real u, Floating u) => Arrowhead u -> Arrowhead u -> ConnectorPath u -> ArrowConnector uSource

Connector with two arrow tips, possibly different.

uniformArrow :: (Real u, Floating u) => Arrowhead u -> ConnectorPath u -> ArrowConnector uSource

Connector with the same arrow tip at both ends.