bezierVertex

fun PShape.bezierVertex(v2: Vector2, v3: Vector2, v4: Vector2)(source)

Adds a cubic Bézier curve vertex to the current shape. The curve is defined by two control points and an end point.

Parameters

v2

The first control point that influences the direction and shape of the curve.

v3

The second control point that affects the curvature of the Bézier curve.

v4

The end point where the Bézier curve terminates.