Function Context.curveTo
Adds a cubic Bézier spline to the path from the current
point
to position p3
in user-space coordinates, using p1
and p2
as the control points. After this call the current point
will be p3
.
If there is no current point
before the call to curveTo
()
this function will behave as if preceded by a call to
moveTo
(p1
).
Prototypes
void curveTo(
Point!(double) p1,
Point!(double) p2,
Point!(double) p3
);
void curveTo(
double p1x,
double p1y,
double p2x,
double p2y,
double p3x,
double p3y
);
Parameters
Name | Description |
p1 | First control point |
p2 | Second control point |
p3 | End of the curve |
Authors
Johannes Pfau | cairoD |
Andrej Mitrovic | cairoD |
cairo team | cairo |