void setup(){ size(800,600); noStroke(); fill(0,0,255,50); rectMode(CENTER_DIAMETER); } void loop(){ background(0); translate(400,300,0); rotateY(mouseX/800.0*TWO_PI); rotateX(mouseY/800.0*TWO_PI); for(int i=-5; i<=5;i++){ for(int j=-5; j<=5;j++){ int espacio=-10; int total=0; for(int k=45;k>0;k-=3){ rect(i*50,j*50,k,k); translate(0,0,espacio); total+=espacio; } translate(0,0,-total); } rotateX(-PI/12); } }