function setup() {
createCanvas(400, 400, WEBGL);
createLoop({gif: {render: false, download: true, fileName: 'box.gif'}});
}
function draw() {
background(220);
const camera = createCamera();
camera.setPosition(150, -150, 150);
camera.lookAt(0, 0, 0);
rotateY(millis() / 500);
box(100);
}