From c59a502dc7cd58030983d1271cd9f3a8f8128a91 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Tue, 29 May 2018 22:42:26 +0200 Subject: implemented EventTarget + runner does not loop forever anymore --- dirty.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dirty.html') 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 -- cgit v1.2.3