Skip to content

$canvasSize

Returns canvas size.

Usage

$canvasSize[canvas;property]

Parameters

FieldDescriptionTypeRequired
canvasThe canvas name.stringtrue
propertyThe canvas size property.”width” | “height”true

Example(s)

This will create a redsquare canvas and then send it with the old and after trimming size.

$attachCanvas[redsquare;ball.png]
New: $canvasSize[redsquare;width]x$canvasSize[redsquare;height] $canvasTrim[redsquare]$fillRect[redsquare;#FF0000;50;50;150;150]
Old: $canvasSize[redsquare;width]x$canvasSize[redsquare;height]
$createCanvas[redsquare;250;250]

Preview