mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
mathematical animations with haskell
https://reanimate.github.io
- Haskell 95.8%
- Elm 3.9%
- Nix 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| ChangeLog.md | ||
| README.md | ||
| reanimate.cabal | ||
| Setup.hs | ||
| stack.yaml | ||
reanimate
Examples
scaling
Animations can be reused, scaled and stretched in time. This example reuse four different animations of different lengths, scales their runtime so they're all in sync, and increases the playback speed.
scaling :: Ani ()
scaling = adjustSpeed 2 $ defineAnimation $ syncAll
[ proc () ->
annotate' (defineAnimation animation)
-< g_ [transform_ $ translate x y] . g_ [transform_ $ scale 0.5 0.5]
| x <- [0,160]
, y <- [0,90]
| animation <- [sinewave, morph_wave, highlight, progressMeters]
]






