PathBuilder.cubicTo

Adds a cubic Bézier curve from the current point to x3, y3 with x1, y1 and x2, y2 as the control points.

After this, x3, y3 will be the new current point.

<picture> <source srcset="cubic-dark.png" media="(prefers-color-scheme: dark)"> <img alt="Cubic To" src="cubic-light.png"> </picture>

class PathBuilder
void
cubicTo
(
float x1
,
float y1
,
float x2
,
float y2
,
float x3
,
float y3
)

Parameters

x1 float

x coordinate of first control point

y1 float

y coordinate of first control point

x2 float

x coordinate of second control point

y2 float

y coordinate of second control point

x3 float

x coordinate of the end of the curve

y3 float

y coordinate of the end of the curve