mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
Clean up scaling example.
This commit is contained in:
parent
d42357cefd
commit
1b4c8fe4fc
2 changed files with 8 additions and 12 deletions
10
README.md
10
README.md
|
|
@ -23,13 +23,11 @@ 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]
|
||||
scaling = adjustSpeed 2 $ syncAll
|
||||
[ defineAnimation $ proc () ->
|
||||
annotate' animation -< g_ [transform_ $ translate x y <> " " <> scale 0.5 0.5]
|
||||
| x <- [0,160]
|
||||
, y <- [0,90]
|
||||
| animation <- [sinewave, morph_wave, highlight, progressMeters]
|
||||
]
|
||||
| animation <- [sinewave, morph_wave, highlight, progressMeters]]
|
||||
```
|
||||

|
||||
|
|
|
|||
|
|
@ -223,11 +223,9 @@ circle_clip sub = proc () -> do
|
|||
|
||||
|
||||
scaling :: Ani ()
|
||||
scaling = adjustSpeed 2 $ defineAnimation $ syncAll
|
||||
[ proc () ->
|
||||
annotate' (defineAnimation animation)
|
||||
-< g_ [transform_ $ translate x y] . g_ [transform_ $ scale 0.5 0.5]
|
||||
scaling = adjustSpeed 2 $ syncAll
|
||||
[ defineAnimation $ proc () ->
|
||||
annotate' animation -< g_ [transform_ $ translate x y <> " " <> scale 0.5 0.5]
|
||||
| x <- [0,160]
|
||||
, y <- [0,90]
|
||||
| animation <- [sinewave, morph_wave, highlight, progressMeters]
|
||||
]
|
||||
| animation <- [sinewave, morph_wave, highlight, progressMeters]]
|
||||
|
|
|
|||
Loading…
Reference in a new issue