Safe Haskell | None |
---|
Offsetting bezier curves and stroking curves.
- bezierOffset :: CubicBezier -> Double -> Double -> [CubicBezier]
- bezierOffsetMax :: Int -> CubicBezier -> Double -> Double -> [CubicBezier]
Documentation
:: CubicBezier | The curve |
-> Double | Offset distance. |
-> Double | Tolerance. |
-> [CubicBezier] | The offset curve |
Calculate an offset path from the bezier curve to within tolerance. If the distance is positive offset to the left, otherwise to the right. A smaller tolerance may require more bezier curves in the path to approximate the offset curve
bezierOffsetMax :: Int -> CubicBezier -> Double -> Double -> [CubicBezier]Source
Like bezierOffset, but limit the number of subpaths for each smooth subsegment. The number should not be smaller than one.