main.nim 299 B

12345678910111213141516
  1. import nodesnim
  2. Window("Hello, world!")
  3. build:
  4. - Scene scene:
  5. name: "Main"
  6. - Label hello:
  7. call setSizeAnchor(1, 1)
  8. call setTextAlign(0.5, 0.5, 0.5, 0.5)
  9. call setText("Hello, world!")
  10. call setBackgroundColor(Color(31, 45, 62))
  11. addMainScene(scene)
  12. windowLaunch()