From 75cb98e055ca6db99a9bff30876f336546585ef7 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 14 Feb 2019 15:56:26 +0100 Subject: [PATCH] Fix wording. --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ab8037..939db37 100644 --- a/README.md +++ b/README.md @@ -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)