Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local com = require('component')
- local gpu = com.gpu
- gpu.setResolution(14,7)
- width, height = gpu.getResolution()
- function square(color)
- gpu.fill(1, 1, width, height, ' ')
- gpu.setBackground(color)
- -- Для примера
- gpu.fill(3, 2, width-4, height-2, ' ')
- gpu.setBackground(0x000000)
- gpu.set(6,4, "Name")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement