xxxxxxxxxx
20
function setup() {
createCanvas(300,300,WEBGL);
}
function draw() {
background(200);
push()
translate(mouseX-150,mouseY-150,0)
rotateX(frameCount*0.01)
rotateY(frameCount*0.01)
box(50)
pop()
translate(0,0,100)
rotateX(frameCount*0.01)
box(70)
}