Method Cairo.MeshPattern()->curve_to()
- Method
curve_to
void
curve_to(float
|int
x1
,float
|int
y1
,float
|int
x2
,float
|int
y2
,float
|int
x3
,float
|int
y3
)- Description
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 curve_to(), this function will behave as if preceded by a call to move_to(x1, y1).
After this call the current point will be (x3, y3).
- Note
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 STATUS_INVALID_MESH_CONSTRUCTION.
- Parameter
x1
the X coordinate of the first control point
- Parameter
y1
the Y coordinate of the first control point
- Parameter
x2
the X coordinate of the second control point
- Parameter
y2
the Y coordinate of the second control point
- Parameter
x3
the X coordinate of the end of the curve
- Parameter
y3
the Y coordinate of the end of the curve