beginShape

v0.0.6
beginShape(mode);

Begin adding vertices to a custom shape

Arguments

modeThe opengl shape mode LINES, POINTS, QUADS, TRIANGLES, TRIANGLE_FAN

The 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();
See beginShape in shapes.h