Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. local gpu = require("compinent.gpu")
  2. local maximumLines = 80
  3. local maximumLineLenght = 25
  4. local minimumLineLenght = 5
  5.  
  6. local screenWidth , screenHeight = gpu.getResolution()
  7. gpu.setBackground(0x000000)
  8. gpu.fill(1,1, screenWidth , screenHeight " ")
  9. local lines= {}
  10. while true do
  11.    while lines  < maximumLines do
  12.      table.insert(lines , {
  13.          x = math.random(1 , screenWidth),
  14.          y = 1 ,
  15.          length = math.random(minimumLineLenght , maximumLineLenght)
  16.        
  17.     })
  18.      end
  19.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement