Method Cairo.Context()->rel_curve_to()
- Method
rel_curve_to
void
rel_curve_to(float
|int
dx1
,float
|int
dy1
,float
|int
dx2
,float
|int
dy2
,float
|int
dx3
,float
|int
dy3
)- Description
Relative-coordinate version of curve_to(). All offsets are relative to the current point. Adds a cubic Bézier spline to the path from the current point to a point offset from the current point by (dx3, dy3), using points offset by (dx1, dy1) and (dx2, dy2) as the control points. After this call the current point will be offset by (dx3, dy3).
Given a current point of (x, y), rel_curve_to(dx1, dy1, dx2, dy2, dx3, dy3) is logically equivalent to curve_to(x+dx1, y+dy1, x+dx2, y+dy2, x+dx3, y+dy3).
It is an error to call this function with no current point.
- Parameter
dx1
the X offset to the first control point
- Parameter
dy1
the Y offset to the first control point
- Parameter
dx2
the X offset to the second control point
- Parameter
dy2
the Y offset to the second control point
- Parameter
dx3
the X offset to the end of the curve
- Parameter
dy3
the Y offset to the end of the curve