Skip to content
Image & Canvas clip

$clip — Limits what is drawn next to the inside of the current path (up to 8 nested clips; save/restore keep them).

Limits what is drawn next to the inside of the current path (up to 8 nested clips; save/restore keep them).

Syntax

$clip[(canvas);(fillRule)]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • fillRule (String, optional) — Accepted, even-odd is always used

Return Value

  • None.

Usage

$clip[canvas;fillRule] → result

Example

$sendMessage[$clip[canvas;fillRule]]

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.