xxxxxxxxxx
23
var degree = 0;
function setup()
{
let canvas = createCanvas(400, 400, WEBGL);
}
function draw()
{
background(0);
rotateZ(degree);
rotateY(degree);
rotateX(degree);
translate(0, 0, mouseX);
normalMaterial();
// strokeWeight(4);
// stroke('brown')
// fill('yellow');
torus(100, 60);
degree+=0.02
}