Advertisement
TechManDylan

clock

Apr 19th, 2021 (edited)
779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. -- Get hold of the canvas
  2. local interface = peripheral.wrap("back")
  3. local canvas = interface.canvas()
  4. -- And add a rectangle
  5. local rect = canvas.addRectangle(0, 0, 100, 100, 0xFF0000FF)
  6.  
  7. rect.setSize(250, 30)
  8. rect.setAlpha(100) -- Let's make this see through
  9.  
  10. local text = canvas.addText({ x = 5, y = 5 }, "")
  11. text.setScale(3)
  12. while true do
  13.   text.setText("Time is " .. textutils.formatTime(os.time()))
  14.   sleep(1)
  15. end
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement