Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local gpu = component.gpu
- function DrawRectangle(x, y, w, h, color)
- c = gpu.getBackground()
- gpu.setBackground(color)
- gpu.fill(x,y,w,h," ")
- gpu.setBackground(c)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement