beginShape()

Using the beginShape() and endShape() functions allows to create more complex forms. beginShape() begins recording vertices for a shape and endShape() stops recording. After calling the beginShape() function, a series of vertex() commands must follow. To stop drawing the shape, call endShape().

Type: function