| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
YampaSDL2.Animation
- animate :: (a -> a -> Extent -> a) -> a -> [(Duration, Curve, a)] -> SF () a
- animateNumber :: Double -> Double -> Extent -> Double
- animateV2 :: V2 Double -> V2 Double -> Extent -> V2 Double
- animateColour :: AlphaColour Double -> AlphaColour Double -> Extent -> AlphaColour Double
- linear :: a -> a
- easeIn :: Num a => a -> a
- easeOut :: Num a => a -> a
Animation
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
animateColour :: AlphaColour Double -> AlphaColour Double -> Extent -> AlphaColour Double Source #