beginShape(mode);Begin adding vertices to a custom shape
Arguments
modeThe opengl shape mode LINES, POINTS, QUADS, TRIANGLES, TRIANGLE_FANThe following would draw a 100 by 100 square at position 100, 100 The following would draw a 100 by 100 square at position 100, 100
beginShape(QUADS);
vertex(100, 100);
vertex(100, 200);
vertex(200, 200);
vertex(200, 100);
endShape();