Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gpu = require("compinent.gpu")
- local maximumLines = 80
- local maximumLineLenght = 25
- local minimumLineLenght = 5
- local screenWidth , screenHeight = gpu.getResolution()
- gpu.setBackground(0x000000)
- gpu.fill(1,1, screenWidth , screenHeight " ")
- local lines= {}
- while true do
- while lines < maximumLines do
- table.insert(lines , {
- x = math.random(1 , screenWidth),
- y = 1 ,
- length = math.random(minimumLineLenght , maximumLineLenght)
- })
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement