// Cloned by bo on 15 Oct 2020 from World "Tutorial 18.1" by "Coding Train" project
// Please leave this clone trail here.
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Video: https://youtu.be/nqiKWXUX-o8
function setup() {
createCanvas(710, 400, WEBGL);
}
function draw() {
background(51);
fill(255, 0, 150);
translate(-200, -100, 0);
normalMaterial();
push();
rotateZ(frameCount * 0.01);
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
cone(80,80);
//cylinder(80,80);
pop();
translate(200, 0, 0);
push();
rotateZ(frameCount * 0.01);
rotateX(frameCount * 0.01);
rotateY(frameCount * 0.01);
box(20,20,20);
pop();
//rect(0, 0, 50, 50);
}