Copyright | Written by David Himmelstrup |
---|---|
License | Unlicense |
Maintainer | lemmih@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- type Transition = Animation -> Animation -> Animation
- signalT :: Signal -> Transition -> Transition
- mapT :: (Animation -> Animation) -> Transition -> Transition
- overlapT :: Double -> Transition -> Transition
- chainT :: Transition -> [Animation] -> Animation
- effectT :: Effect -> Effect -> Transition
- fadeT :: Transition
Documentation
type Transition = Animation -> Animation -> Animation Source #
A transition transforms one animation into another.
signalT :: Signal -> Transition -> Transition Source #
Apply a signal to the timing of a transition.
mapT :: (Animation -> Animation) -> Transition -> Transition Source #
Map the result of a transition.
overlapT :: Double -> Transition -> Transition Source #
Apply transition only to N
seconds of the first
animation and to the last N
seconds of the second animation.
Example:
overlapT
0.5fadeT
drawBox
drawCircle
chainT :: Transition -> [Animation] -> Animation Source #
Combine a list of animations using a given transition.
Example:
chainT
(overlapT
0.5fadeT
) [drawBox
,drawCircle
,drawProgress
]
:: Effect | Effect to be applied to the first animation. |
-> Effect | Effect to be applied to the second animation. |
-> Transition |
Create a transition between two animations by applying an effect to each respective animation.
fadeT :: Transition Source #
Fade out left-hand-side animation while fading in right-hand-side animation.
Example:
drawBox
`fadeT'
drawCircle