issue with touch

Hello, So this project i made works fine on computers, people can doodle as many times as they want but when used on a phone or ipad there is an issue. On these devices the second you take your finger off the screen it doesn't let you draw again. Not sure how to fix this. . . . `void setup() { size(800, 600); strokeWeight(10); frameRate(10); background(240); endDraw(); }

void draw() { for (int i = 0; i < 2000; i++) { float r = random(0,2000); stroke(r*4); stroke(random(255),random(255),random(255)); line(r, i, r, i); } }

void mouseMoved () { stroke(255); fill(255); ellipse(mouseX,mouseY,26,26); endDraw(); redraw(); }`

Answers

Sign In or Register to comment.