Skip to content

$bezierCurveTo

Adds a cubic bezier curve to the currect path.

Usage

$bezierCurveTo[canvas;startX;startY;middleX;middleY;endX;endY]

Parameters

FieldTypeDescriptionRequired
canvasStringName of the canvas.True
startXNumberThe X coordinate of the start point.True
startYNumberThe Y coordinate of the start point.True
middleXNumberThe X coordinate of the mid point.True
middleYNumberThe Y coordinate of the mid point.True
endXNumberThe X coordinate of the end point.True
endYNumberThe Y coordinate of the end point.True

Example(s)

No examples for this function.

meow

Raw Info

{
"name": "$bezierCurveTo",
"description": "Adds a cubic bezier curve to the currect path.",
"params": [
{
"name": "canvas",
"description": "Name of the canvas.",
"type": "String",
"required": true
},
{
"name": "startX",
"description": "The X coordinate of the start point.",
"type": "Number",
"required": true
},
{
"name": "startY",
"description": "The Y coordinate of the start point.",
"type": "Number",
"required": true
},
{
"name": "middleX",
"description": "The X coordinate of the mid point.",
"type": "Number",
"required": true
},
{
"name": "middleY",
"description": "The Y coordinate of the mid point.",
"type": "Number",
"required": true
},
{
"name": "endX",
"description": "The X coordinate of the end point.",
"type": "Number",
"required": true
},
{
"name": "endY",
"description": "The Y coordinate of the end point.",
"type": "Number",
"required": true
}
],
"usage": "$bezierCurveTo[canvas;startX;startY;middleX;middleY;endX;endY]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/bezierCurveTo.ts",
"docs": "https://aoicanvas.vercel.app/functions/beziercurveto"
}