Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local event = require("event")
- local modem = component.modem
- local gpu = component.gpu
- local lenght, weight = gpu.getResolution()
- local slot = 1
- local term = require("term")
- maxslot = 0
- print(lenght.."x"..weight)
- -- Graphic Gestion --
- function text(x, y, text, background, foreground)
- maxslot = maxslot + 1
- gpu.setBackground(background)
- gpu.setForeground(foreground)
- gpu.set(x,y,text)
- gpu.setBackground(0x000000)
- gpu.setForeground(0xffffff)
- end
- local function cube()
- gpu.setBackground(0xffffff)
- gpu.fill(4, 4, 30, 10, " ")
- end
- cube()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement