diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 1a26763..27645f5 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -337,7 +337,7 @@ function draw() { newSoundJustRecorded = false; } - if (millis() >= 6000 + timer) { + if (millis() >= 1000 + timer) { secondTick = true; timer = millis(); } @@ -352,7 +352,7 @@ function draw() { setTimeout(function() { shape.destX = random(canvasWidth); shape.destY = random(canvasHeight); - }, random(100, 1000)); + }, random(100, 3000)); } if (shape.collide(shapes) === true) { @@ -375,5 +375,5 @@ function windowResized() { /** * Canvas re-draw handling. **/ - resizeCanvas(canvasWidth, canvasHeight); + resizeCanvas(windowWidth, windowHeight); }