Skip to content

$quadraticCurveTo

Adds a quadratic bezier curve to the currect path.

Usage

$quadraticCurveTo[canvas;startX;startY;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
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": "$quadraticCurveTo",
"description": "Adds a quadratic 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": "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": "$quadraticCurveTo[canvas;startX;startY;endX;endY]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/quadraticCurveTo.ts",
"docs": "https://aoicanvas.vercel.app/functions/quadraticcurveto"
}