p5.js template

by dirkk0

HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.js"></script>

JavaScript

function setup() {
  createCanvas(720, 400);
  background(10);
  strokeWeight(2);
}
touchStarted = function() {
  console.log("touch started")
}

touchEnded = function() {
  console.log("touch ended")
}