Fix wording.

This commit is contained in:
David 2019-02-14 15:56:26 +01:00
commit 75cb98e055

View file

@ -14,8 +14,22 @@
![Clipping](gifs/clip_rect.gif)
## scaling
Animations can be reused, scaled and stretched in time. This example
reused four different animations of different lengths, scales their runtime
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]
]
```
![Scaling](gifs/scaling.gif)