xxxxxxxxxx
23
function setup() {
createCanvas(450, 400, WEBGL);
}
function draw() {
background(255);
translate(-100, -30, 0);
stroke(255, 51, 204);
push();
rotateZ(frameCount * 0.01);
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
torus(70, 20);
pop();
stroke(102, 102, 255);
translate(200, 80, 0);
push();
rotateZ(frameCount * 0.01);
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
sphere(70);
pop();
}