Skip to content
Image & Canvas cropCanvas

$cropCanvas — Crops the transparent borders of a canvas (each side can be kept with false).

Crops the transparent borders of a canvas (each side can be kept with false).

Syntax

$cropCanvas[(canvas);(top);(left);(right);(bottom)]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • top (Boolean, optional) — Trim the top (true)
  • left (Boolean, optional) — Trim the left (true)
  • right (Boolean, optional) — Trim the right (true)
  • bottom (Boolean, optional) — Trim the bottom (true)

Return Value

  • None.

Usage

$cropCanvas[canvas;top;left;right;bottom] → result

Example

$sendMessage[$cropCanvas[canvas;top;left;right;bottom]]

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.