From 33762430ae3ac2133549507300d841b688b66350 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 1 Jun 2021 18:53:14 +0200 Subject: [PATCH] Gotta draw that each run --- voicegardens/static/voicegardens.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 53c5db7..edc69dc 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -564,7 +564,6 @@ function setup() { canvas = createCanvas(windowWidth, windowHeight); frameRate(frameRate); setupRecording(); - background(color("#C3EFDB")); blendMode(BLEND); smooth(); noStroke(); @@ -574,6 +573,8 @@ function draw() { /** * The draw loop which is called x times a second where x is the frameRate. **/ + background(color("#C3EFDB")); + // generate a new shape after a sound recording if (newSoundJustRecorded === true) { // build a new copy of the recording to store on the shape object