xxxxxxxxxx
float alpha = 0;
void setup() {
size(640, 360, P3D);
rectMode(CENTER);
}
void draw() {
background(255, 128, 128);
// pushMatrix();
// fill(10, 64);
// translate(width/2, height/2, 120);
// rect(0, 0, 200, 100);
// popMatrix();
pushMatrix();
noStroke();
fill(25,50);
translate(width/2, height/2, -30);
rotateY(alpha);
rotateX(alpha);
box(150);
popMatrix();
alpha+= 0.01;
}