Processing's beginShape/endShape with bezierVertex() enables smooth custom vector paths
Beyond the basic shape primitives, Processing’s beginShape()…endShape() block allows arbitrary polygons and paths by specifying vertex points. bezierVertex(cx1,cy1, cx2,cy2, x,y) adds a Bezier segment: two control points shape the curve into the next anchor vertex. curveVertex() uses Catmull-Rom spline interpolation, which automatically smooths through points without explicit control handles. Mixing vertex() and bezierVertex() creates paths with both straight and curved segments. CLOSE as an endShape() parameter automatically closes the path.
Examples
beginShape(); vertex(15, 90); bezierVertex(15,50, 85,50, 85,90); endShape();
Assessment
Create a leaf shape using beginShape() with symmetric bezierVertex pairs; explain what the two control points of each bezierVertex control visually.