幾何学ドーナツ
function setup() {
createCanvas(710, 400, WEBGL);
}
function draw() {
background(250);
translate(0, 0, 0);
push();
rotateZ(frameCount * 0.05);
rotateX(frameCount * 0.05);
rotateY(frameCount * 0.05);
torus(70, 20);
pop();
translate(0, 0, 0);
push();
rotateZ(frameCount * 0.03);
rotateX(frameCount * 0.03);
rotateY(frameCount * 0.03);
torus(70, 20);
pop();
}