yampa-sdl2-0.1.0.0: Yampa and SDL2 made easy

Safe HaskellNone
LanguageHaskell2010

YampaSDL2.Animation

Contents

Synopsis

Animation

animate Source #

Arguments

:: (a -> a -> Extent -> a)

The property to animate

-> a

The starting point

-> [(Duration, Curve, a)]

The animations to execute one after another

-> SF () a 

Create an animation

Example:

animate animateV2 (V2 0 0) [(2, easeOut, V2 0 100), (2, easeIn, V2 0 0)] 

Animatable Properties

animateV2 :: V2 Double -> V2 Double -> Extent -> V2 Double Source #

Animation curves

linear :: a -> a Source #

easeIn :: Num a => a -> a Source #

easeOut :: Num a => a -> a Source #