hps-0.15: Haskell Postscript

Safe HaskellSafe-Inferred
LanguageHaskell98

Graphics.PS.Path

Description

Path type and functions.

Synopsis

Documentation

data Path Source

Path data type,in cartesian space.

(+++) :: Path -> Path -> Path Source

Infix notation for Join.

line :: [Pt Double] -> Path Source

Line segments though list of Pt.

polygon :: [Pt Double] -> Path Source

Variant of line connecting the last Pt to the first.

rectangle :: Pt Double -> Double -> Double -> Path Source

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

arc :: Pt Double -> Double -> Double -> Double -> Path Source

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

arcNegative :: Pt Double -> Double -> Double -> Double -> Path Source

Negative arc.

annular :: Pt Double -> Double -> Double -> Double -> Double -> Path Source

Annular segment.

flatten :: Path -> Path Source

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

renderLines :: [Ln Double] -> Path Source

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

renderLines' :: [Ln Double] -> Path Source

Collapse line sequences into a single line.