From a678c515556836bd81063f0bc386827581b9dd11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 11 Dec 2013 17:51:58 +0100 Subject: [PATCH] Some minor changes in Satie example. --- examples/Paperjs.org/SatieLikedToDraw.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/Paperjs.org/SatieLikedToDraw.html b/examples/Paperjs.org/SatieLikedToDraw.html index 23ff2793..fe1684a5 100644 --- a/examples/Paperjs.org/SatieLikedToDraw.html +++ b/examples/Paperjs.org/SatieLikedToDraw.html @@ -18,7 +18,6 @@ var amount = 8; var step = view.size.width / (amount + 1); - var scale = view.size.height / 1.5; var flip = false; for (var i = 0; i <= amount; i++) { @@ -41,15 +40,15 @@ } function onKeyDown(event) { - if (event.key === 'space') { + if (event.key === 'space') group.fullySelected = !group.fullySelected; - } } var audio, source, analyserL, analyserR, freqByteData; view.onFrame = function() { var step = view.size.width / (amount + 1); + var scale = view.size.height / 1.5; analyserL.getByteFrequencyData(freqByteData); var leftBands = getEqualizerBands(freqByteData, true); analyserR.getByteFrequencyData(freqByteData); @@ -133,7 +132,7 @@ } return bands; } - +