standard.center

description

Makes the element appear centered on the horizontal axis.

syntax

getX(ELEMENT_NAME).center()

What does getX() mean?


example(s)


@
@newText("helloworld", "Hello world")
$    .center()
@    .print()
  • Prints Hello world onto the screen, horizontally centered.