xxxxxxxxxx
38
function setup() {
// put setup code here
createCanvas(700, 400, WEBGL);
ortho();
}
function rotateDraw() {
stroke(200);
rotateZ(frameCount * 0.001);
rotateX(frameCount * 0.001);
rotateY(frameCount * 0.001);
box(100, 100, frameCount * 0.1);
}
function draw() {
// put drawing code here
background(25);
strokeWeight(3);
push();
translate(-200, 0, 0);
noFill();
rotateDraw()
pop();
push();
translate(0, 0, 0);
noFill();
rotateDraw()
pop();
push();
translate(200, 0, 0);
noFill();
rotateDraw()
pop();
}