# --- Test 9. Use Label node. --- #
import nodesnim


Window("hello world")

var
  main = Scene("Main")

  label = Label()

main.addChild(label)

label.setText("Hello, world!\nsecondline\nThis is a long sentence.")  # Change label text.
label.setTextAlign(0.2, 0.5, 0.2, 0.5)  # try to change it ^^.
label.setSizeAnchor(1, 1)
label.setTextColor(Color(1f, 1f, 1f))  # default text color.

addScene(main)
setMainScene("Main")
windowLaunch()
