Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a new point to a subpath and connects that point to the last point in the subpath by using a straight line.
![]() ![]() |
Syntax
object.lineTo(x, y);
Parameters
x [in]
Type: numberThe x-coordinate, in pixels.
y [in]
Type: numberThe y-coordinate, in pixels.
Return value
This method does not return a value.
Standards information
- HTML Canvas 2D Context, Section 9
.png)
.png)