aboutsummaryrefslogtreecommitdiffstats
path: root/dirty.html
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-29 22:42:26 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-29 22:42:26 +0200
commitc59a502dc7cd58030983d1271cd9f3a8f8128a91 (patch)
treefb5ea655ccaaaa064e0b2a8b1b856a150f8f7a10 /dirty.html
parentb3317d7150ce875e7ad772e40ad700d37839da2f (diff)
downloadsvg.js-c59a502dc7cd58030983d1271cd9f3a8f8128a91.tar.gz
svg.js-c59a502dc7cd58030983d1271cd9f3a8f8128a91.zip
implemented EventTarget + runner does not loop forever anymore
Diffstat (limited to 'dirty.html')
-rw-r--r--dirty.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/dirty.html b/dirty.html
index 26648a8..8b87e11 100644
--- a/dirty.html
+++ b/dirty.html
@@ -130,12 +130,10 @@ function getColor(t) {
// .ease('<>')
// .center(500, 200)
-var r = new SVG.Runner(1000).loop(10, false, 100)
+var r = new SVG.Runner(200)//.loop(3, false, 100)
r.queue(null, console.log)
-r.step(1200) // should be 0.1s
-r.step(-300) // should be 0.9s
-
+new SVG.Timeline().schedule(r)
// r.step(300) // should be 0.1
// r.step(2 * 1100) // should be 0