quad_to


Description:

public void quad_to (float x1, float y1, float x2, float y2)

Adds a [quadratic Bézier curve](https://en.

wikipedia.org/wiki/B%C3a9zier_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>

Parameters:

this

a PathBuilder

x1

x coordinate of control point

y1

y coordinate of control point

x2

x coordinate of the end of the curve

y2

y coordinate of the end of the curve