lp-diagrams-2.1.4: An EDSL for diagrams based based on linear constraints

Safe HaskellNone
LanguageHaskell2010

Graphics.Diagrams.Path

Synopsis

Documentation

toBeziers' :: FrozenPoint -> [Frozen Segment] -> [Curve] Source #

Convert a Path into a Curve

fromBeziers :: [Curve] -> FrozenPath Source #

Convert a Curve into a Path

clipOne :: Curve -> [Curve] -> Maybe Curve Source #

clipOne c0 cs return the part of c0 from its start to the point where it intersects any element of cs.

cutAfter' :: [Curve] -> [Curve] -> [Curve] Source #

cutAfter path area cuts the path after its first intersection with the area.

cutBefore' :: [Curve] -> [Curve] -> [Curve] Source #

cutAfter path area cuts the path after its first intersection with the area.

revBeziers :: [Curve] -> [Curve] Source #

Reverse a bezier curve

circlePath :: Point -> Expr -> Path Source #

Circle approximated with 4 cubic bezier curves

path :: Monad m => Path -> Diagram lab m () Source #

stroke :: Monad m => Color -> Diagram lab m a -> Diagram lab m a Source #

draw :: Monad m => Diagram lab m a -> Diagram lab m a Source #

noDraw :: Monad m => Diagram lab m a -> Diagram lab m a Source #

using :: Monad m => (PathOptions -> PathOptions) -> Diagram lab m a -> Diagram lab m a Source #