Advertisement
9551

Untitled

Dec 17th, 2023
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. shell.run("wget https://github.com/9551-Dev/apis/raw/main/pixelbox_lite.lua")
  2. local box = require("pixelbox_lite").new(term.current())
  3.  
  4. local function make_background(x,y)
  5. local dist = math.ceil((x^2 + y^2)^(1/0.5)*2)%15
  6.  
  7. return 2^dist
  8. end
  9.  
  10. local w,h = term.getSize()
  11. for x=1,w*2 do
  12. for y=1,h*3 do
  13. box.CANVAS[y][x] = make_background(x,y)
  14. end
  15. end
  16.  
  17. box:render()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement