reanimate-0.1.5.0: Animation library based on SVGs.
Reanimate.Monad
type Duration = Double Source #
type Time = Double Source #
data Frame a Source #
Constructors
Fields
Defined in Reanimate.Monad
Methods
(>>=) :: Frame a -> (a -> Frame b) -> Frame b #
(>>) :: Frame a -> Frame b -> Frame b #
return :: a -> Frame a #
fail :: String -> Frame a #
fmap :: (a -> b) -> Frame a -> Frame b #
(<$) :: a -> Frame b -> Frame a #
pure :: a -> Frame a #
(<*>) :: Frame (a -> b) -> Frame a -> Frame b #
liftA2 :: (a -> b -> c) -> Frame a -> Frame b -> Frame c #
(*>) :: Frame a -> Frame b -> Frame b #
(<*) :: Frame a -> Frame b -> Frame a #
data Animation Source #
mkAnimation :: Duration -> Frame () -> Animation Source #
duration :: Animation -> Duration Source #
emit :: Tree -> Frame () Source #
before :: Animation -> Animation -> Animation Source #
sim :: Animation -> Animation -> Animation Source #
simLoop :: Animation -> Animation -> Animation Source #
simDrop :: Animation -> Animation -> Animation Source #
pause :: Double -> Animation Source #
andThen :: Animation -> Animation -> Animation Source #
signal :: Double -> Double -> Frame Double Source #
signalSCurve :: Double -> Double -> Double -> Frame Double Source #
frameAt :: Double -> Animation -> Tree Source #
renderTree :: Tree -> String Source #
renderSvg :: Maybe Number -> Maybe Number -> Tree -> String Source #
mapA :: (Tree -> Tree) -> Animation -> Animation Source #
mapF :: (Tree -> Tree) -> Frame a -> Frame a Source #
pauseAtEnd :: Double -> Animation -> Animation Source #
adjustSpeed :: Double -> Animation -> Animation Source #
reverseAnimation :: Animation -> Animation Source #
autoReverse :: Animation -> Animation Source #
oscillate :: Frame a -> Frame a Source #
repeatAnimation :: Double -> Animation -> Animation Source #