bezier_curve_to method

bezier_curve_to

Adds a cubic Bézier curve to the path. It requires three points. The first two points are control points and the third one is the end point. The starting point is the last point in the current path, which can be changed using moveTo() before creating the Bézier curve.

def bezier_curve_to(self, cp_1x, cp_1y, cp_2x, cp_2y, x, y):
    ...
ParameterTypeDescription
cp_1xfloatThe x axis of the coordinate for the first control point.
cp_1yfloatThe y axis of the coordinate for the first control point.
cp_2xfloatThe x axis of the coordinate for the second control point.
cp_2yfloatThe y axis of the coordinate for the second control point.
xfloatThe x axis of the coordinate for the end point.
yfloatThe y axis of the coordinate for the end point.

See Also