Image & Canvas
trimCanvas
$trimCanvas — Crops the transparent borders of a canvas (each side can be kept with false). (alias of $cropCanvas)
Crops the transparent borders of a canvas (each side can be kept with false). (alias of $cropCanvas)
Syntax
$trimCanvas[(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
$trimCanvas[canvas;top;left;right;bottom] → result
Example
$sendMessage[$trimCanvas[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.