# --- Test 9. Use Label node. --- # import nodesnim Window("hello world") var mainobj: SceneObj main = Scene("Main", mainobj) labelobj: LabelObj label = Label(labelobj) main.addChild(label) label.text = "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.color = Color(1f, 1f, 1f) # default text color. addScene(main) setMainScene("Main") windowLaunch()