Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("wget https://github.com/9551-Dev/apis/raw/main/pixelbox_lite.lua")
- local box = require("pixelbox_lite").new(term.current())
- local function make_background(x,y)
- local dist = math.ceil((x^2 + y^2)^(1/0.5)*2)%15
- return 2^dist
- end
- local w,h = term.getSize()
- for x=1,w*2 do
- for y=1,h*3 do
- box.CANVAS[y][x] = make_background(x,y)
- end
- end
- box:render()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement