Skip to content
Image & Canvas textAlign

$textAlign — Sets or returns the text alignment of a canvas (left, right, center, start, end).

Sets or returns the text alignment of a canvas (left, right, center, start, end).

Syntax

$textAlign[(canvas);(align)]

Parameters

  • canvas (String, optional) — Canvas name (empty: the current canvas)
  • align (String, optional) — Alignment

Return Value

  • String.

Usage

$textAlign[canvas;align] → result

Example

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