Skip to content
Image & Canvas rotate

$rotate — Adds a rotation (radians) to the transform of a canvas.

Adds a rotation (radians) to the transform of a canvas.

Syntax

$rotate[(canvas);angle]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • angle (Number, required) — Angle in radians

Return Value

  • None.

Usage

$rotate[canvas;angle] → result

Example

$sendMessage[$rotate[canvas;angle]]

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.