Skip to content
Image & Canvas compositeOperation

$compositeOperation — Sets or returns how what is drawn next blends: source-over, multiply, screen, overlay, darken, lighten, difference.

Sets or returns how what is drawn next blends: source-over, multiply, screen, overlay, darken, lighten, difference.

Syntax

$compositeOperation[(canvas);(operation)]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • operation (String, optional) — Operation

Return Value

  • String.

Usage

$compositeOperation[canvas;operation] → result

Example

$sendMessage[$compositeOperation[canvas;operation]]

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.