Advertisement
Guest User

screen_utils.lua

a guest
Mar 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. local component = require("component")
  2. local gpu = component.gpu
  3.  
  4. function DrawRectangle(x, y, w, h, color)
  5.  
  6.   c = gpu.getBackground()
  7.   gpu.setBackground(color)
  8.   gpu.fill(x,y,w,h," ")
  9.   gpu.setBackground(c)
  10.  
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement