Skip to content
Image & Canvas ellipse

$ellipse — Adds an elliptical arc to the current path (angles in radians).

Adds an elliptical arc to the current path (angles in radians).

Syntax

$ellipse[(canvas);x;y;radiusX;radiusY;rotation;startAngle;endAngle;(counterclockwise)]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • x (Number, required) — Center X
  • y (Number, required) — Center Y
  • radiusX (Number, required) — Horizontal radius
  • radiusY (Number, required) — Vertical radius
  • rotation (Number, required) — Rotation of the ellipse
  • startAngle (Number, required) — Start angle
  • endAngle (Number, required) — End angle
  • counterclockwise (Boolean, optional) — true to go counterclockwise

Return Value

  • None.

Usage

$ellipse[canvas;x;y;radiusX;radiusY;rotation;startAngle;endAngle;counterclockwise] → result

Example

$sendMessage[$ellipse[canvas;x;y;radiusX;radiusY;rotation;startAngle;endAngle;counterclockwise]]

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.