Skip to content
Image & Canvas scale

$scale — Adds a scaling to the transform of a canvas.

Adds a scaling to the transform of a canvas.

Syntax

$scale[(canvas);x;y]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • x (Number, required) — Horizontal factor
  • y (Number, required) — Vertical factor

Return Value

  • None.

Usage

$scale[canvas;x;y] → result

Example

$sendMessage[$scale[canvas;x;y]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.