Skip to content

$newConicGradient

Creates a new conic gradient.

Usage

$newConicGradient[gradient;startAngle;x;y;...stops?]

Parameters

FieldTypeDescriptionRequired
gradientStringName of the gradient.True
startAngleNumberThe angle at which to begin the gradient, in radians. The angle starts from a line going horizontally right from the center, and proceeds clockwise.True
xNumberThe X coordinate of the center of the gradient.True
yNumberThe Y coordinate of the center of the gradient.True
stops$addColorStopColor stops of the gradient.False

Example(s)

No examples for this function.

meow

Raw Info

{
"name": "$newConicGradient",
"description": "Creates a new conic gradient.",
"params": [
{
"name": "gradient",
"description": "Name of the gradient.",
"type": "String",
"required": true
},
{
"name": "startAngle",
"description": "The angle at which to begin the gradient, in radians. The angle starts from a line going horizontally right from the center, and proceeds clockwise.",
"type": "Number",
"required": true
},
{
"name": "x",
"description": "The X coordinate of the center of the gradient.",
"type": "Number",
"required": true
},
{
"name": "y",
"description": "The Y coordinate of the center of the gradient.",
"type": "Number",
"required": true
},
{
"name": "stops",
"description": "Color stops of the gradient.",
"type": "$addColorStop",
"required": false
}
],
"usage": "$newConicGradient[gradient;startAngle;x;y;...stops?]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/newConicGradient.ts",
"docs": "https://aoicanvas.vercel.app/functions/newconicgradient"
}