Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local term = require "term"
- local event = require "event"
- local component = require "component"
- local n = 120 --16777215
- local function matrix()
- local oldx, oldy = term.getCursor()
- local maxx, maxy = component.gpu.getResolution()
- local oldcolourf = component.gpu.getForeground()
- local oldcolourb = component.gpu.getBackground()
- component.gpu.setForeground(math.random(0,16777215))
- component.gpu.setBackground(math.random(0,16777215))
- term.setCursor(math.random(1,maxx),math.random(1,maxy))
- term.write(string.char(math.random(32,126)))
- term.setCursor(oldx,oldy)
- component.gpu.setForeground(oldcolourf)
- component.gpu.setBackground(oldcolourb)
- n = n / 2
- event.timer(n,matrix,1)
- end
- event.timer(0,matrix,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement