Skip to content

$lineTo

Adds a straight line to the current path.

Usage

$lineTo[canvas;x;y]

Parameters

FieldTypeDescriptionRequired
canvasStringName of the canvas.True
xNumberThe X coordinate of the line’s end point.True
yNumberThe Y coordinate of the line’s end point.True

Example(s)

No examples for this function.

meow

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"
}