Personally I try to keep it simple and more extended for understanding.
I saw you withdraw your last post, but I will post the answer anyway.
function setup() {
createCanvas(800, 600, WEBGL);
}
function draw() {
background(175);
orbitControl(5, 5, 5);
drawShape();
}
function drawShape() {
beginShape();
fill("gray");
vertex(0, 0, 0);
vertex(200, 0, 0)
vertex(200, 0, 100);
vertex(100, 0, 100);
vertex(100, 0, 200);
vertex(0, 0, 200);
endShape();
beginShape();
fill("yellow")
vertex(0, 0, 0);
vertex(0, 20, 0);
vertex(200, 20, 0)
vertex(200, 0, 0);
endShape();
beginShape();
fill("red");
vertex(200, 0, 100);
vertex(200, 20, 100);
vertex(100, 20, 100);
vertex(100, 0, 100);
endShape();
beginShape();
fill("blue");
vertex(100, 20, 100);
vertex(100, 20, 200);
vertex(100, 0, 200);
vertex(100, 0, 100);
endShape();
beginShape();
fill("green");
vertex(0, 0, 0)
vertex(0, 0, 200)
vertex(0, 20, 200)
vertex(0, 20, 0)
endShape();
}