Skip to content

$arcTo

Adds a circular arc to the current path.

Usage

$arcTo[canvas;x1;y1;x2;y2;radius]

Parameters

FieldTypeDescriptionRequired
canvasStringName of the canvas.True
x1NumberThe X coordinate of the first control point.True
y1NumberThe Y coordinate of the first control point.True
x2NumberThe X coordinate of the second control point.True
y2NumberThe Y coordinate of the second control point.True
radiusNumberThe arc’s radiusTrue

Example(s)

No examples for this function.

meow

Raw Info

{
"name": "$arcTo",
"description": "Adds a circular arc to the current path.",
"params": [
{
"name": "canvas",
"description": "Name of the canvas.",
"type": "String",
"required": true
},
{
"name": "x1",
"description": "The X coordinate of the first control point.",
"type": "Number",
"required": true
},
{
"name": "y1",
"description": "The Y coordinate of the first control point.",
"type": "Number",
"required": true
},
{
"name": "x2",
"description": "The X coordinate of the second control point.",
"type": "Number",
"required": true
},
{
"name": "y2",
"description": "The Y coordinate of the second control point.",
"type": "Number",
"required": true
},
{
"name": "radius",
"description": "The arc's radius",
"type": "Number",
"required": true
}
],
"usage": "$arcTo[canvas;x1;y1;x2;y2;radius]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/arcTo.ts",
"docs": "https://aoicanvas.vercel.app/functions/arcto"
}