If you explicitly say what type of shape you're trying to draw, it works.
e.g.:
Code: float ang = 0;
void setup(){
size(800,800,P3D);
framerate(22);
} // end method setup...
void draw() {
background(100);
translate(width/2,height/2,0);
rotateX(radians(ang-=PI/2.0));
rotateY(radians(ang));
beginShape(QUADS);
fill(255,1,0); // mr. red...
vertex(0,0,0);
vertex(100,0,0);
vertex(100,0,100);
vertex(0,0,100);
endShape();
beginShape(QUADS); // mr. green...
fill(0,255,0);
vertex(0,0,0);
vertex(100,0,0);
vertex(100,100,0);
vertex(0,100,0);
endShape();
beginShape(QUADS); // mr. blue...
fill(0,1,255);
vertex(0,0,0);
vertex(0,100,0);
vertex(0,100,100);
vertex(0,0,100);
endShape();
} // end method draw...
You can even get rid of 2 of the begin/endShape calls:
Code: beginShape(QUADS);
fill(255,1,0); // mr. red...
vertex(0,0,0);
vertex(100,0,0);
vertex(100,0,100);
vertex(0,0,100);
fill(0,255,0);
vertex(0,0,0);
vertex(100,0,0);
vertex(100,100,0);
vertex(0,100,0);
fill(0,1,255);
vertex(0,0,0);
vertex(0,100,0);
vertex(0,100,100);
vertex(0,0,100);
endShape();