xxxxxxxxxx
31
let value = 0;
function setup() {
createCanvas(400, 400, WEBGL);
}
function draw() {
background(220);
var x = 30;
var y = 30;
while (width > x){
rotateX(frameCount * 0.001);
rotateY(frameCount * 0.001);
orbitControl();
fill(100,30);
torus (x, 24, 24);
cone(x, y);
ellipsoid(x, 30, x);
cylinder(20, 50);
x = x+30;
y = y+30;
}
}