xxxxxxxxxx
42
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);
translate(0,0);
rotateX(frameCount * 0.01);
rotateY(0);
rotateZ(0);
torus(115, 50, 15, 6);
plane(160, 160, 2)
rotateY(millis() / 1000);
push();
cone(80, 65, 16);
rotateZ(0);
rotateX(0);
rotateY(1);
pop();
}