use P.beginShape() and P.endShape()