hps-0.11: Haskell Postscript

Graphics.PS.Query

Description

Path query functions and related operations.

Synopsis

Documentation

startPt :: Path -> Maybe PtSource

Locate the starting point of the path, which must begin with a MoveTo node.

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.

close :: Path -> PathSource

Append a LineTo the start point of Path.