Advertisement
9551

Untitled

Jan 23rd, 2024
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. local function draw_filled_box(term,x,y,width,height,color)
  2. local draw_data = ("%x"):format(math.log(color,2)):rep(width)
  3.  
  4. for y=y,y+height-1 do
  5. term.setCursorPos(x,y)
  6. term.blit(draw_data,draw_data,draw_data)
  7. end
  8. end
  9.  
  10. draw_filled_box(term,2,2,3,2,colors.blue)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement