decentral1se
4 years ago
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with
4 additions and
10 deletions
-
voicegardens/static/voicegardens.js
|
@ -569,22 +569,16 @@ function setup() { |
|
|
setupRecording(); |
|
|
setupRecording(); |
|
|
|
|
|
|
|
|
bgColour = color("#C3EFDB"); |
|
|
bgColour = color("#C3EFDB"); |
|
|
|
|
|
background(bgColour); |
|
|
|
|
|
blendMode(BLEND); |
|
|
|
|
|
smooth(); |
|
|
|
|
|
noStroke(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function draw() { |
|
|
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. |
|
|
**/ |
|
|
**/ |
|
|
background(bgColour); |
|
|
|
|
|
blendMode(BLEND); |
|
|
|
|
|
smooth(); |
|
|
|
|
|
noStroke(); |
|
|
|
|
|
|
|
|
|
|
|
// offset the window view based on new values of x,y related to the screen.
|
|
|
|
|
|
// These values are generated once the user drags the screen with the mouse.
|
|
|
|
|
|
screenX = lerp(screenX, toScreenX, 0.2); |
|
|
|
|
|
screenY = lerp(screenY, toScreenY, 0.2); |
|
|
|
|
|
translate(screenX, screenY); |
|
|
|
|
|
|
|
|
|
|
|
// generate a new shape after a sound recording
|
|
|
// generate a new shape after a sound recording
|
|
|
if (newSoundJustRecorded === true) { |
|
|
if (newSoundJustRecorded === true) { |
|
|