MeshPattern.curveTo

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_mesh_pattern_curve_to(), 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_STATUS_PATTERN_TYPE_MISMATCH. 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_STATUS_INVALID_MESH_CONSTRUCTION. Since 1.12

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

Parameters

x1 double

the X coordinate of the first control point

y1 double

the Y coordinate of the first control point

x2 double

the X coordinate of the second control point

y2 double

the Y coordinate of the second control point

x3 double

the X coordinate of the end of the curve

y3 double

the Y coordinate of the end of the curve

Meta