Skip to content
Image & Canvas opacity

$opacity — Sets or returns the opacity (0 to 1) applied to what is drawn next (not to images).

Sets or returns the opacity (0 to 1) applied to what is drawn next (not to images).

Syntax

$opacity[(canvas);(opacity)]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • opacity (Number, optional) — Opacity

Return Value

  • Number.

Usage

$opacity[canvas;opacity] → result

Example

$sendMessage[$opacity[canvas;opacity]]

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.