Skip to content

$newRadialGradient

Creates a new radial gradient.

Usage

$newRadialGradient[gradient;x1;y1;r1;x2;y2;r2;...stops?]

Parameters

FieldTypeDescriptionRequired
gradientStringName of the gradient.True
x1NumberThe X coordinate of the start circle.True
y1NumberThe Y coordinate of the start circle.True
r1NumberThe radius of the start circle.True
x2NumberThe X coordinate of the end circle.True
y2NumberThe Y coordinate of the end circle.True
r2NumberThe radius of the end circle.True
stops$addColorStopColor stops of the gradient.False

Example(s)

No examples for this function.

meow

Raw Info

{
"name": "$newRadialGradient",
"description": "Creates a new radial gradient.",
"params": [
{
"name": "gradient",
"description": "Name of the gradient.",
"type": "String",
"required": true
},
{
"name": "x1",
"description": "The X coordinate of the start circle.",
"type": "Number",
"required": true
},
{
"name": "y1",
"description": "The Y coordinate of the start circle.",
"type": "Number",
"required": true
},
{
"name": "r1",
"description": "The radius of the start circle.",
"type": "Number",
"required": true
},
{
"name": "x2",
"description": "The X coordinate of the end circle.",
"type": "Number",
"required": true
},
{
"name": "y2",
"description": "The Y coordinate of the end circle.",
"type": "Number",
"required": true
},
{
"name": "r2",
"description": "The radius of the end circle.",
"type": "Number",
"required": true
},
{
"name": "stops",
"description": "Color stops of the gradient.",
"type": "$addColorStop",
"required": false
}
],
"usage": "$newRadialGradient[gradient;x1;y1;r1;x2;y2;r2;...stops?]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/newRadialGradient.ts",
"docs": "https://aoicanvas.vercel.app/functions/newradialgradient"
}