Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local oldw = term.write
- local x,y = term.getSize()
- function term.write(txt)
- term.setTextColor(2^math.random(1, 16)/2)
- return oldw(txt)
- end
- local function cPrint(text)
- x2,y2 = term.getCursorPos()
- term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- write(text.. "\n")
- end
- function drawBox()
- term.setBackgroundColour( colors.red )
- term.setCursorPos(1,3)
- cPrint("+----Welcome-----+")
- cPrint("| Rainbow Virus |")
- cPrint("| Loaded :D |")
- cPrint("| |")
- cPrint("|The gayest virus|")
- cPrint("| ever |")
- cPrint("| :D:D |")
- cPrint("+----------------+")
- term.setBackgroundColour( colors.black )
- end
- term.setBackgroundColour( colors.blue )
- term.clear()
- drawBox()
- sleep(1)
- term.setBackgroundColour( colors.black )
- while true do
- for i=1,100 do
- term.setCursorPos( math.random( x ), math.random( y ) )
- write( math.random( 9 ) )
- drawBox()
- end
- sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment