Skip to content
Image & Canvas arcTo

$arcTo — Adds a circular arc between two tangents to the current path.

Adds a circular arc between two tangents to the current path.

Syntax

$arcTo[(canvas);x1;y1;x2;y2;radius]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • x1 (Number, required) — First point X
  • y1 (Number, required) — First point Y
  • x2 (Number, required) — Second point X
  • y2 (Number, required) — Second point Y
  • radius (Number, required) — Radius

Return Value

  • None.

Usage

$arcTo[canvas;x1;y1;x2;y2;radius] → result

Example

$sendMessage[$arcTo[canvas;x1;y1;x2;y2;radius]]

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.