xxxxxxxxxx
44
let inTouch = false;
let t = "DON'T PRESS";
function setup() {
createCanvas(windowWidth, windowHeight);
textAlign(CENTER);
fill(255, 209, 128);
pixelDensity(displayDensity());
}
function draw() {
background(22, 22, 22);
textSize(80);
textFont('Helvetica');
fill(random(255), 5, 30);
textWidth(50);
text("don't press me", random(60, 60), random(60, 60), width / 1.5, 100);
textSize(30);
fill(225, 209, 128);
for (var i = 0; i < touches.length; i++) {
vertex(touches[i].x, touches[i].y);
textSize(50);
text("i warned you...", width / 2, height / 2);
}
}
function touchMoved() {
return false;
}
// function touchStarted() {
// inTouch = true;
// return false;
// }
// function touchEnded() {
// inTouch = false;
// return false;
// }