Skip to content

$addColorStop

Adds a color stop to the gradient.

Usage

$addColorStop[gradient?;offset;color]

Parameters

FieldTypeDescriptionRequired
gradientStringName of the gradient.False
offsetNumberThe color stop offset.True
colorColorColor of the stop.True

Example(s)

No examples for this function.

meow

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