Browse Source

Get animations working on top of the map

main
Luke Murphy 5 years ago
parent
commit
905d9af5bb
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 11
      voicegardens/static/voicegardens.js

11
voicegardens/static/voicegardens.js

@ -217,21 +217,24 @@ function setup() {
/**
* The p5.js initial setup function.
**/
var canvas = createCanvas(canvasWidth, canvasHeight);
canvas.parent("canvasContainer");
canvas = createCanvas(canvasWidth, canvasHeight);
var tileMap = mappa.tileMap(tileMapOptions);
tileMap = mappa.tileMap(tileMapOptions);
tileMap.overlay(canvas);
setupRecording();
frameRate(frameRate);
fill("red");
}
function draw() {
/**
* The p5.js draw loop.
**/
background(canvasColour);
clear();
noStroke();
if (newSoundJustRecorded === true) {
shapes.push(new GeneratedShape());

Loading…
Cancel
Save