JSFiddle - React, Tailwind, and code Playground

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);
}

function touchStarted() {
  console.log("touch started")
}

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