Skip to content
Image & Canvas alignImage

$alignImage — Sets or returns the horizontal alignment (left, center, right) of the rectangles and images drawn next: x is their left edge, center or right edge. (alias of $rectAlign)

Sets or returns the horizontal alignment (left, center, right) of the rectangles and images drawn next: x is their left edge, center or right edge. (alias of…

Syntax

$alignImage[(canvas);(align)]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • align (String, optional) — left, center or right

Return Value

  • String.

Usage

$alignImage[canvas;align] → result

Example

$sendMessage[$alignImage[canvas;align]]

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.