Path type and functions.
- data Path
- (+++) :: Path -> Path -> Path
- line :: [Pt] -> Path
- polygon :: [Pt] -> Path
- rectangle :: Pt -> Double -> Double -> Path
- arc :: Pt -> Double -> Double -> Double -> Path
- arcNegative :: Pt -> Double -> Double -> Double -> Path
- annular :: Pt -> Double -> Double -> Double -> Double -> Path
- flatten :: Path -> Path
- renderLines :: [(Pt, Pt)] -> Path
- renderLines' :: [(Pt, Pt)] -> Path
Documentation
Path data type,in cartesian space.
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.
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.