No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
7 additions and
4 deletions
-
voicegardens/static/voicegardens.js
|
@ -217,21 +217,24 @@ function setup() { |
|
|
/** |
|
|
/** |
|
|
* The p5.js initial setup function. |
|
|
* The p5.js initial setup function. |
|
|
**/ |
|
|
**/ |
|
|
var canvas = createCanvas(canvasWidth, canvasHeight); |
|
|
canvas = createCanvas(canvasWidth, canvasHeight); |
|
|
canvas.parent("canvasContainer"); |
|
|
|
|
|
|
|
|
|
|
|
var tileMap = mappa.tileMap(tileMapOptions); |
|
|
tileMap = mappa.tileMap(tileMapOptions); |
|
|
tileMap.overlay(canvas); |
|
|
tileMap.overlay(canvas); |
|
|
|
|
|
|
|
|
setupRecording(); |
|
|
setupRecording(); |
|
|
|
|
|
|
|
|
frameRate(frameRate); |
|
|
frameRate(frameRate); |
|
|
|
|
|
|
|
|
|
|
|
fill("red"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function draw() { |
|
|
function draw() { |
|
|
/** |
|
|
/** |
|
|
* The p5.js draw loop. |
|
|
* The p5.js draw loop. |
|
|
**/ |
|
|
**/ |
|
|
background(canvasColour); |
|
|
clear(); |
|
|
|
|
|
noStroke(); |
|
|
|
|
|
|
|
|
if (newSoundJustRecorded === true) { |
|
|
if (newSoundJustRecorded === true) { |
|
|
shapes.push(new GeneratedShape()); |
|
|
shapes.push(new GeneratedShape()); |
|
|