meshPatternCurveTo

fnvoid meshPatternCurveTo(cairo.pattern.Pattern pattern, double x1, double y1, double x2, double y2, double x3, double y3)

Adds a cubic Bézier spline to the current patch from the current point to position (x3, y3) in pattern-space coordinates, using (x1, y1) and (x2, y2) as the control points.

If the current patch has no current point before the call to [cairo.global.meshPatternCurveTo], this function will behave as if preceded by a call to cairo_mesh_pattern_move_to(pattern, x1, y1).

After this call the current point will be (x3, y3).

Note

If pattern is not a mesh pattern then pattern will be put

into an error status with a status of [cairo.types.Status.PatternTypeMismatch]. If pattern has no current patch or the current patch already has 4 sides, pattern will be put into an error status with a status of [cairo.types.Status.InvalidMeshConstruction].

Parameters

patterna #cairo_pattern_t
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