reanimate-0.4.1.0: Animation library based on SVGs.

Safe HaskellNone
LanguageHaskell2010

Reanimate.Svg.LineCommand

Synopsis

Documentation

type CmdM a = State RPoint a Source #

data LineCommand Source #

Constructors

LineMove RPoint 
LineBezier [RPoint]

LineDraw RPoint

LineEnd RPoint 
Instances
Show LineCommand Source # 
Instance details

Defined in Reanimate.Svg.LineCommand

partialSvg Source #

Arguments

:: Double

number between 0 and 1 inclusively, determining what portion of the path to show

-> Tree

Image representing a path, of which we only want to display a portion determined by the first argument

-> Tree 

Create an image showing portion of a path. Note that this only affects paths (see mkPath). You can also use this with other SVG shapes if you convert them to path first (see pathify).

Typical usage:

animate $ \t -> partialSvg t myPath