mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
Fix wording.
This commit is contained in:
parent
959e52ff61
commit
d42357cefd
1 changed files with 15 additions and 1 deletions
16
README.md
16
README.md
|
|
@ -14,8 +14,22 @@
|
|||
|
||||

|
||||
|
||||
|
||||
## 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]
|
||||
]
|
||||
```
|
||||

|
||||
|
|
|
|||
Loading…
Reference in a new issue