Context.curveTo

void curveTo(double x1, double y1, double x2, double y2, double x3, double y3)

Adds a cubic Bézier spline to the path from the current point to position (x3, y3) in user-space coordinates, using (x1, y1) and (x2, y2) as the control points. After this call the current point will be (x3, y3).

If there is no current point before the call to [cairo.context.Context.curveTo] this function will behave as if preceded by a call to cairo_move_to(cr, x1, y1).

Parameters

x1the X coordinate of the first control point
y1the Y coordinate of the first control point
x2the X coordinate of the second control point
y2the Y coordinate of the second control point
x3the X coordinate of the end of the curve
y3the Y coordinate of the end of the curve