Skip to content

$opacity

Gets or sets the opacity in the canvas.

Usage

$opacity[canvas;value?]

Parameters

FieldTypeDescriptionRequired
canvasStringThe name of the canvas to get or set the opacity in.True
valuePercentagesNew value.False

Example(s)

No examples for this function.

meow

Raw Info

{
"name": "$opacity",
"description": "Gets or sets the opacity in the canvas.",
"params": [
{
"name": "canvas",
"description": "The name of the canvas to get or set the opacity in.",
"type": "String",
"required": true
},
{
"name": "value",
"description": "New value.",
"type": "Percentages",
"required": false
}
],
"usage": "$opacity[canvas;value?]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/opacity.ts",
"docs": "https://aoicanvas.vercel.app/functions/opacity"
}