xxxxxxxxxx
30
function setup() {
createCanvas(400, 400, WEBGL);
// detailY = createSlider(3, 16, 3);
// detailY.position(10, height + 5);
// detailY.style('width', '80px');
}
function draw() {
background(205, 102, 94);
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
rotateZ(frameCount * 0.01);
torus(115, 50, 15, 6);
// plane(160, 160, 2)
rotateZ(millis() / 1000);
push();
translate(0,0,mouseX);
rotateX(1.6);
cone(80, 150);
pop();
console.log(mouseX);
}