Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modules = peripheral.find("neuralInterface")
- local clearcanvas = modules.canvas()
- clearcanvas.clear()
- -- Get hold of the canvas
- local interface = peripheral.wrap("back")
- local canvas = interface.canvas()
- -- And add a rectangle
- local rect = canvas.addRectangle(0, 0, 100, 100, 0x000000FF)
- rect.setSize(90, 60)
- rect.setAlpha(100) -- Let's make this see through
- local text1 = canvas.addText({ x = 5, y = 5 }, "")
- local text2 = canvas.addText({ x = 5, y = 15 }, "")
- local text3 = canvas.addText({ x = 5, y = 25 }, "")
- local text4 = canvas.addText({ x = 5, y = 35 }, "")
- text1.setScale(1)
- text2.setScale(1)
- text3.setScale(1)
- text4.setScale(1)
- while true do
- text1.setText("***ToDo***")
- text2.setText("1. [ ] bla")
- text3.setText("2. [ ] stuff")
- text4.setText("3. [ ] wat")
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement