$addColorStop
Adds a color stop to the gradient.
Usage
$addColorStop[gradient?;offset;color]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| gradient | String | Name of the gradient. | False |
| offset | Number | The color stop offset. | True |
| color | Color | Color of the stop. | True |
Example(s)
No examples for this function.

Raw Info
{ "name": "$addColorStop", "description": "Adds a color stop to the gradient.", "params": [ { "name": "gradient", "description": "Name of the gradient.", "type": "String", "required": false }, { "name": "offset", "description": "The color stop offset.", "type": "Number", "required": true }, { "name": "color", "description": "Color of the stop.", "type": "Color", "required": true } ], "usage": "$addColorStop[gradient?;offset;color]", "category": "canvas", "src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/addColorStop.ts", "docs": "https://aoicanvas.vercel.app/functions/addcolorstop"}