Merge that

This commit is contained in:
decentral1se 2021-06-01 18:49:31 +02:00
parent 401a180c8c
commit 4d7da85009
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A

View File

@ -62,9 +62,6 @@ var shapes = [];
var amplitude; var amplitude;
var duration; var duration;
// The background colour choices for the environment
var bgColour;
function record() { function record() {
/** /**
* Start recording a sound. * Start recording a sound.
@ -567,9 +564,7 @@ function setup() {
canvas = createCanvas(windowWidth, windowHeight); canvas = createCanvas(windowWidth, windowHeight);
frameRate(frameRate); frameRate(frameRate);
setupRecording(); setupRecording();
background(color("#C3EFDB"));
bgColour = color("#C3EFDB");
background(bgColour);
blendMode(BLEND); blendMode(BLEND);
smooth(); smooth();
noStroke(); noStroke();
@ -579,7 +574,6 @@ function draw() {
/** /**
* The draw loop which is called x times a second where x is the frameRate. * The draw loop which is called x times a second where x is the frameRate.
**/ **/
// generate a new shape after a sound recording // generate a new shape after a sound recording
if (newSoundJustRecorded === true) { if (newSoundJustRecorded === true) {
// build a new copy of the recording to store on the shape object // build a new copy of the recording to store on the shape object