Advertisement
rungholt

ntodo

Aug 4th, 2023 (edited)
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. local modules = peripheral.find("neuralInterface")
  2. local clearcanvas = modules.canvas()
  3. clearcanvas.clear()
  4.  
  5. -- Get hold of the canvas
  6. local interface = peripheral.wrap("back")
  7. local canvas = interface.canvas()
  8. -- And add a rectangle
  9. local rect = canvas.addRectangle(0, 0, 100, 100, 0x000000FF)
  10.  
  11. rect.setSize(90, 60)
  12. rect.setAlpha(100) -- Let's make this see through
  13.  
  14. local text1 = canvas.addText({ x = 5, y = 5 }, "")
  15. local text2 = canvas.addText({ x = 5, y = 15 }, "")
  16. local text3 = canvas.addText({ x = 5, y = 25 }, "")
  17. local text4 = canvas.addText({ x = 5, y = 35 }, "")
  18.  
  19. text1.setScale(1)
  20. text2.setScale(1)
  21. text3.setScale(1)
  22. text4.setScale(1)
  23.  
  24. while true do
  25.     text1.setText("***ToDo***")
  26.     text2.setText("1. [ ] bla")
  27.     text3.setText("2. [ ] stuff")
  28.     text4.setText("3. [ ] wat")
  29.     sleep(1)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement