Safe Haskell | None |
---|---|
Language | Haskell2010 |
- toBeziers :: FrozenPath -> [Curve]
- curveSegment :: FrozenPoint -> FrozenPoint -> FrozenPoint -> FrozenPoint -> Curve
- lineSegment :: Point' Double -> Point' Double -> Curve
- toBeziers' :: FrozenPoint -> [Frozen Segment] -> [Curve]
- fromBeziers :: [Curve] -> FrozenPath
- pathSegments :: Path' t -> [Segment t]
- isCycle :: Segment t -> Bool
- clipOne :: Curve -> [Curve] -> Maybe Curve
- cutAfter' :: [Curve] -> [Curve] -> [Curve]
- cutBefore' :: [Curve] -> [Curve] -> [Curve]
- revBeziers :: [Curve] -> [Curve]
- onBeziers :: ([Curve] -> [Curve] -> [Curve]) -> FrozenPath -> FrozenPath -> FrozenPath
- cutAfter :: FrozenPath -> FrozenPath -> FrozenPath
- cutBefore :: FrozenPath -> FrozenPath -> FrozenPath
- type Path = Path' Expr
- polyline :: [Point] -> Path
- polygon :: [Point] -> Path
- circlePath :: Point -> Expr -> Path
- path :: Monad m => Path -> Diagram lab m ()
- frozenPath' :: Monad m => FrozenPath -> Diagram lab m ()
- stroke :: Monad m => Color -> Diagram lab m a -> Diagram lab m a
- draw :: Monad m => Diagram lab m a -> Diagram lab m a
- noDraw :: Monad m => Diagram lab m a -> Diagram lab m a
- noOutline :: PathOptions -> PathOptions
- outline :: Color -> PathOptions -> PathOptions
- fill :: Color -> PathOptions -> PathOptions
- zigzagDecoration :: PathOptions -> PathOptions
- using :: Monad m => (PathOptions -> PathOptions) -> Diagram lab m a -> Diagram lab m a
- ultraThin :: Constant
- veryThin :: Constant
- thin :: Constant
- semiThick :: Constant
- thick :: Constant
- veryThick :: Constant
- ultraThick :: Constant
- solid :: PathOptions -> PathOptions
- dotted :: PathOptions -> PathOptions
- denselyDotted :: PathOptions -> PathOptions
- looselyDotted :: PathOptions -> PathOptions
- dashed :: PathOptions -> PathOptions
- denselyDashed :: PathOptions -> PathOptions
- looselyDashed :: PathOptions -> PathOptions
- dashDotted :: PathOptions -> PathOptions
- denselyDashdotted :: PathOptions -> PathOptions
- looselyDashdotted :: PathOptions -> PathOptions
Documentation
toBeziers :: FrozenPath -> [Curve] Source #
curveSegment :: FrozenPoint -> FrozenPoint -> FrozenPoint -> FrozenPoint -> Curve Source #
toBeziers' :: FrozenPoint -> [Frozen Segment] -> [Curve] Source #
Convert a Path into a Curve
fromBeziers :: [Curve] -> FrozenPath Source #
Convert a Curve into a Path
pathSegments :: Path' t -> [Segment t] Source #
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
onBeziers :: ([Curve] -> [Curve] -> [Curve]) -> FrozenPath -> FrozenPath -> FrozenPath Source #
cutAfter :: FrozenPath -> FrozenPath -> FrozenPath Source #
cutBefore :: FrozenPath -> FrozenPath -> FrozenPath Source #
frozenPath' :: Monad m => FrozenPath -> Diagram lab m () Source #
noOutline :: PathOptions -> PathOptions Source #
outline :: Color -> PathOptions -> PathOptions Source #
fill :: Color -> PathOptions -> PathOptions Source #
using :: Monad m => (PathOptions -> PathOptions) -> Diagram lab m a -> Diagram lab m a Source #
solid :: PathOptions -> PathOptions Source #
dotted :: PathOptions -> PathOptions Source #
dashed :: PathOptions -> PathOptions Source #
dashDotted :: PathOptions -> PathOptions Source #