0407 - beginShape(): A new way of drawing

You are asked to use the beginShape(), vertex(), and endShape() commands to reproduce the serrated shape shown here :



You will note that this shape has many "teeth". To render this shape properly, you will need to combine a small number of hand-coded vertices, with a large number of vertices which are computationally generated. Here are some hints:

Solutions