Gotta draw that each run

This commit is contained in:
decentral1se 2021-06-01 18:53:14 +02:00
parent cfb8b5eca3
commit 33762430ae
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A

View File

@ -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