Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- native = term.current()
- mon = peripheral.wrap("left")
- term.redirect(mon)
- term.setBackgroundColor(colors.black)
- term.clear()
- xsize = 15.4
- ysize = 10
- while true do
- x = math.random(4)-1
- y = math.random(4)-1
- x = x*xsize+1
- y = y*ysize+1
- c = 1
- c = bit.blshift(1, math.random(16)-1)
- -- print(c)
- term.redirect(mon)
- paintutils.drawFilledBox(x,y,x+xsize-1,y+ysize-1,c)
- term.redirect(native)
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement