Cube

void setup() {
  size(1240, 860, P3D);  // Size must be the first statement
  stroke(255);  // Set line drawing color to white

}

float x = 0.1;
float y = 0.1;

void draw() {
x = x +0.01;
fill(255);
stroke(0);
translate(width/2, height/2, -50); 
rotateY(x);
rotateX(x);
box(300, 300, 300);


}

sketch_3d.pde