xxxxxxxxxx
35
function setup() {
createCanvas(400, 300, WEBGL);
angleMode(DEGREES);
}
function draw() {
background('lightblue');
stroke('gray');
rotateY(frameCount);
push();
fill('white');
noStroke();
rotateZ(90);
cylinder(10, 200);
pop();
push();
translate(-100, 0, 0);
fill('red');
box(50);
pop();
push();
translate(0, 0, 0);
fill('green');
sphere(50);
pop();
push();
translate(100, 0, 0);
fill('blue');
cone(50, 50);
pop();
}