Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- controller = peripheral.wrap("bottom") -- Defines the controller to the left of the computer
- controller.setRelativeMode(true, 1920, 1080) -- Convenient Aspect ratio for most screens
- while true do
- local timer = os.startTimer(1)
- local event, id
- repeat
- event, id = os.pullEvent("timer")
- until id == timer
- texttoshow = "Test"
- controller.clear() -- If you don't do this, the texts will draw over each other
- controller.drawCircle(-10, 540, 100, 0x000000)
- controller.drawCenteredString("Hello World", -10, 540, 0xffffff)
- controller.drawCenteredString(texttoshow, -10, 560, 0xffffff)
- end
Advertisement
Add Comment
Please, Sign In to add comment