Skip to content
Image & Canvas rectAlign

$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.

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.

Syntax

$rectAlign[(canvas);(align)]

Parameters

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

Return Value

  • String.

Usage

$rectAlign[canvas;align] → result

Example

$sendMessage[$rectAlign[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.