PathBuilder.lineTo

Draws a line from the current point to x, y and makes it the new current point.

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

class PathBuilder
void
lineTo
(
float x
,
float y
)

Parameters

x float

x coordinate

y float

y coordinate