$lineTo
Adds a straight line to the current path.
Usage
$lineTo[canvas;x;y]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| canvas | String | Name of the canvas. | True |
| x | Number | The X coordinate of the line’s end point. | True |
| y | Number | The Y coordinate of the line’s end point. | True |
Example(s)
No examples for this function.

Raw Info
{ "name": "$lineTo", "description": "Adds a straight line to the current path.", "params": [ { "name": "canvas", "description": "Name of the canvas.", "type": "String", "required": true }, { "name": "x", "description": "The X coordinate of the line's end point.", "type": "Number", "required": true }, { "name": "y", "description": "The Y coordinate of the line's end point.", "type": "Number", "required": true } ], "usage": "$lineTo[canvas;x;y]", "category": "canvas", "src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/lineTo.ts", "docs": "https://aoicanvas.vercel.app/functions/lineto"}