$newConicGradient
Creates a new conic gradient.
Usage
$newConicGradient[gradient;startAngle;x;y;...stops?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| gradient | String | Name of the gradient. | True |
| startAngle | Number | 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. | True |
| x | Number | The X coordinate of the center of the gradient. | True |
| y | Number | The Y coordinate of the center of the gradient. | True |
| stops | $addColorStop | Color stops of the gradient. | False |
Example(s)
No examples for this function.

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