From 9b76075cd267c37b5f208c3812294938bc2e0a37 Mon Sep 17 00:00:00 2001 From: cam o'connell Date: Mon, 14 Sep 2015 00:02:33 +1200 Subject: [PATCH] set var changes --- examples/set.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/set.html b/examples/set.html index c2c9066..77ee13b 100644 --- a/examples/set.html +++ b/examples/set.html @@ -33,7 +33,7 @@ var $range = $('.input-range'); var $logo = $('#logo'); - var tg = 0.5; + var target = 0.5; var position = 0.5; var friction = 0.05; @@ -53,14 +53,14 @@ * Setup range input */ $range.on('input', function(){ - tg = this.value; + target = this.value; }); function step(timestamp) { window.requestAnimationFrame(step); - position += (tg - position) * friction; + position += (target - position) * friction; $logo.lazylinepainter('set', position); }