From 2ebf289ca38d8eacbe8f8bead94b66064d63cb7b Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Thu, 31 Jul 2014 15:10:18 -0400 Subject: [PATCH] Make waitTime global and shorten it Since no one is noticing it :( --- js/magic.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/magic.js b/js/magic.js index 7bd0491..d9a7cc4 100644 --- a/js/magic.js +++ b/js/magic.js @@ -7,6 +7,9 @@ window.onload = function () { // load-up) var counting = true; + // The amount of time to wait (in number of animate() calls) + var waitTime = 20; + // How fast to draw the spells var step = 0.2; @@ -171,7 +174,6 @@ window.onload = function () { AnimationFrame.shim(); var animationFrame = new AnimationFrame(30), timeCounter = 0, - waitTime = 50, color, gradient; context.lineWidth = 0.5;