hps-0.11: Haskell Postscript
Graphics.PS.Query
Description
Path query functions and related operations.
Path
Synopsis
startPt :: Path -> Maybe PtSource
Locate the starting point of the path, which must begin with a MoveTo node.
MoveTo
endPt :: Path -> Maybe PtSource
Locate the end point of the path.
mkValid :: Path -> PathSource
Ensure path begins with a MoveTo node.
approx :: Double -> Path -> PathSource
Approximate curves as n straight line segments. That is replace CurveTo nodes with n LineTo nodes calculated using bezier4.
CurveTo
LineTo
bezier4
close :: Path -> PathSource
Append a LineTo the start point of Path.