supreamcallum45

Untitled

May 26th, 2021 (edited)
2,612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. controller = peripheral.wrap("bottom") -- Defines the controller to the left of the computer
  2. controller.setRelativeMode(true, 1920, 1080) -- Convenient Aspect ratio for most screens
  3. while true do
  4.   local timer = os.startTimer(1)
  5.   local event, id
  6.   repeat
  7.     event, id = os.pullEvent("timer")
  8.   until id == timer
  9.   texttoshow = "Test"
  10.   controller.clear() -- If you don't do this, the texts will draw over each other
  11.   controller.drawCircle(-10, 540, 100, 0x000000)
  12.   controller.drawCenteredString("Hello World", -10, 540, 0xffffff)
  13.   controller.drawCenteredString(texttoshow, -10, 560, 0xffffff)
  14.  
  15. end
Advertisement
Add Comment
Please, Sign In to add comment