xxxxxxxxxx
27
let x = 0;
let count = 0;
function setup() {
createCanvas(100, 100);
}
function draw() {
background(204);
x = x + 0.1;
if (x > width) {
x = 0;
}
line(x, 0, x, height);
if (count%2 == 0){
noLoop();
}else{
loop();
}
console.log(count)
}
function mousePressed(){
count = count+1;
}