$newRadialGradient
Creates a new radial gradient.
Usage
$newRadialGradient[gradient;x1;y1;r1;x2;y2;r2;...stops?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| gradient | String | Name of the gradient. | True |
| x1 | Number | The X coordinate of the start circle. | True |
| y1 | Number | The Y coordinate of the start circle. | True |
| r1 | Number | The radius of the start circle. | True |
| x2 | Number | The X coordinate of the end circle. | True |
| y2 | Number | The Y coordinate of the end circle. | True |
| r2 | Number | The radius of the end circle. | True |
| stops | $addColorStop | Color stops of the gradient. | False |
Example(s)
No examples for this function.

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"}