TechManDylan

clock

Apr 19th, 2021 (edited)
474
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×