SHARE
TWEET

Untitled

a guest Mar 26th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top