hps-0.11: Haskell Postscript

Graphics.PS.Path

Description

Path type and functions.

Synopsis

Documentation

data Path Source

Path data type,in cartesian space.

(+++) :: Path -> Path -> PathSource

Infix notation for Join.

line :: [Pt] -> PathSource

Line segments though list of Pt.

polygon :: [Pt] -> PathSource

Variant of line connecting the last Pt to the first.

rectangle :: Pt -> Double -> Double -> PathSource

Rectangle with lower left at Pt and of specified width and height. Polygon is oredered anticlockwise from lower left.

arc :: Pt -> Double -> Double -> Double -> PathSource

Arc given by a central point,a radius,and start and end angles.

arcNegative :: Pt -> Double -> Double -> Double -> PathSource

Negative arc.

annular :: Pt -> Double -> Double -> Double -> Double -> PathSource

Annular segment.

flatten :: Path -> PathSource

Apply any transformations at path. The resulting path will not have any PTransform nodes.

renderLines :: [(Pt, Pt)] -> PathSource

Render each (p1,p2) as a distinct line.

renderLines' :: [(Pt, Pt)] -> PathSource

Collapse line sequences into a single line.