Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("drawing")
- local data = {}
- local W,H = term.getSize()
- for y = 1,H do
- data[y] = {}
- for x = 1,W do
- local d = {}
- d[1] = 2^math.random(0,15)
- d[2] = 2^math.random(0,15)
- d[3] = " "
- data[y][x] = d
- end
- end
- drawing.save(data,"data")
- local img = drawing.load("data")
- drawing.draw(img)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement