Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- lowerTransformations :: Tree -> Tree
- lowerIds :: Tree -> Tree
- simplify :: Tree -> Tree
- removeGroups :: Tree -> [Tree]
- extractPath :: Tree -> [PathCommand]
- withSubglyphs :: [Int] -> (Tree -> Tree) -> Tree -> Tree
- splitGlyphs :: [Int] -> Tree -> (Tree, Tree)
- svgGlyphs :: Tree -> [(Tree -> Tree, DrawAttributes, Tree)]
- pathify :: Tree -> Tree
- mapSvgPaths :: ([PathCommand] -> [PathCommand]) -> SVG -> SVG
- mapSvgLines :: ([LineCommand] -> [LineCommand]) -> SVG -> SVG
- mapSvgPoints :: (RPoint -> RPoint) -> SVG -> SVG
- svgPointsToRadians :: SVG -> SVG
- module Reanimate.Svg.Constructors
- module Reanimate.Svg.LineCommand
- module Reanimate.Svg.BoundingBox
- module Reanimate.Svg.Unuse
Documentation
lowerTransformations :: Tree -> Tree Source #
removeGroups :: Tree -> [Tree] Source #
extractPath :: Tree -> [PathCommand] Source #
pathify :: Tree -> Tree Source #
Convert primitive SVG shapes (like those created by mkCircle
, mkRect
, mkLine
or
mkEllipse
) into SVG path. This can be useful for creating animations of these shapes being
drawn progressively with partialSvg
.
Example:
pathifyExample :: Animation pathifyExample = animate $ \t -> gridLayout [ [ partialSvg t $ pathify $ mkCircle 1 , partialSvg t $ pathify $ mkRect 2 2 ] , [ partialSvg t $ pathify $ mkEllipse 1 0.5 , partialSvg t $ pathify $ mkLine (-1, -1) (1, 1) ] ]
mapSvgPaths :: ([PathCommand] -> [PathCommand]) -> SVG -> SVG Source #
mapSvgLines :: ([LineCommand] -> [LineCommand]) -> SVG -> SVG Source #
svgPointsToRadians :: SVG -> SVG Source #
module Reanimate.Svg.Constructors
module Reanimate.Svg.LineCommand
module Reanimate.Svg.BoundingBox
module Reanimate.Svg.Unuse