Skip to content
Image & Canvas drawProgressBar

$drawProgressBar — Draws a progress bar (or a pie chart with type:pie) from $barData and $barOptions.

Draws a progress bar (or a pie chart with type:pie) from $barData and $barOptions.

Syntax

$drawProgressBar[(canvas);x;y;width;height;(config)]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • x (Number, required) — X
  • y (Number, required) — Y
  • width (Number, required) — Width
  • height (Number, required) — Height
  • config (String, optional) — Ignored

Return Value

  • None.

Usage

$drawProgressBar[canvas;x;y;width;height;config] → result

Example

$sendMessage[$drawProgressBar[canvas;x;y;width;height;config]]

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.