Skip to content

$setShadow

Sets the shadow (blur, style, offset) in a canvas.

Usage

$setShadow[canvas;blur;style;...offset?]

Parameters

FieldTypeDescriptionRequired
canvasStringName of the canvas to set the shadow in.True
blurNumberThe shadow blur.True
styleColorThe shadow style.True
offsetNumberThe shadow offsetFalse

Example(s)

No examples for this function.

meow

Raw Info

{
"name": "$setShadow",
"description": "Sets the shadow (blur, style, offset) in a canvas.",
"params": [
{
"name": "canvas",
"description": "Name of the canvas to set the shadow in.",
"type": "String",
"required": true
},
{
"name": "blur",
"description": "The shadow blur.",
"type": "Number",
"required": true
},
{
"name": "style",
"description": "The shadow style.",
"type": "Color",
"required": true
},
{
"name": "offset",
"description": "The shadow offset",
"type": "Number",
"required": false
}
],
"usage": "$setShadow[canvas;blur;style;...offset?]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/setShadow.ts",
"docs": "https://aoicanvas.vercel.app/functions/setshadow"
}