hps-0.2: Haskell Postscript

Graphics.PS.Path

Synopsis

Documentation

data Path Source

Path data type, in cartesian space.

Instances

Eq Path 
Show Path 
Transformable Path 

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

Infix notation for path join.

line :: [Pt] -> PathSource

Line segments though list of points.

polygon :: [Pt] -> PathSource

Line variant connecting last point to first point.

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

Rectangle of specified dimensions 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 transformation nodes.