PathBuilder.quadTo

Adds a quadratic Bézier curve from the current point to x2, y2 with x1, y1 as the control point.

After this, x2, y2 will be the new current point.

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

class PathBuilder
void
quadTo
(
float x1
,
float y1
,
float x2
,
float y2
)

Parameters

x1 float

x coordinate of control point

y1 float

y coordinate of control point

x2 float

x coordinate of the end of the curve

y2 float

y coordinate of the end of the curve