xxxxxxxxxx
17
let x = 0;
function setup() {
createCanvas(100, 100);
noLoop();
}
function draw() {
background(220);
square(++x, 25, 50);
}
function mousePressed() {
saveGif("animationExample", 100, { delay: 0, units: "frames" });
loop();
}