xxxxxxxxxx
16
let animationIndex;
function setup() {
createCanvas(400, 400);
animationIndex = 0;
}
function draw() {
background(220);
}
function mousePressed()-=
animationIndex += 1;
animationIndex = animationIndex % 3;
console.log(animationIndex);
}