Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- side = "monitor_0"
- term.write("Display Text: ")
- text = "Welcome to ShueCo.!"
- textColor = 0
- scrollSpeed = 0.3
- term.write("Program running... CTLR+T to Terminate.")
- function makeScrollingText(side,text,tc,speed)
- mon = peripheral.wrap(side)
- w,h = mon.getSize()
- x = w
- tc = string.rep(tc,#text)
- mon.setTextScale(5)
- mon.clear()
- while true do
- mon.setCursorPos(x,1)
- mon.blit(text,tc,string.rep("f",#text))
- x = x-1
- if x < (#text - (#text * 2)) then
- x = w
- end
- sleep(speed+0)
- mon.clear()
- end
- end
- makeScrollingText(side,text,textColor,scrollSpeed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement