Skip to content

$resizeCanvas

Resizes the canvas.

Usage

$resizeCanvas[canvas;width;height]

Parameters

FieldTypeDescriptionRequired
canvasStringThe name of the canvas to resize.True
widthNumberNew width.True
heightNumberNew height.True

Example(s)

No examples for this function.

meow

Raw Info

{
"name": "$resizeCanvas",
"description": "Resizes the canvas.",
"params": [
{
"name": "canvas",
"description": "The name of the canvas to resize.",
"type": "String",
"required": true
},
{
"name": "width",
"description": "New width.",
"type": "Number",
"required": true
},
{
"name": "height",
"description": "New height.",
"type": "Number",
"required": true
}
],
"usage": "$resizeCanvas[canvas;width;height]",
"category": "canvas",
"src": "https://github.com/devlordduck/aoi.canvas/tree/v2/src/functions/canvas/resizeCanvas.ts",
"docs": "https://aoicanvas.vercel.app/functions/resizecanvas"
}