Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. -- 打印带边框字体 c:color bc:border color a:align 不传为居中显示
  2. align_l,align_r=1,2
  3.  
  4. function print_outline(t,x,y,c,bc,a)
  5. local ox=#t*2
  6. if a==align_l then
  7. ox=0
  8. elseif a==align_r then
  9. ox=#t*4
  10. end
  11. local tx=x-ox
  12. color(bc)
  13. print(t,tx-1,y)print(t,tx-1,y-1)print(t,tx,y-1)print(t,tx+1,y-1)
  14. print(t,tx+1,y)print(t,tx+1,y+1)print(t,tx,y+1)print(t,tx-1,y+1)
  15. print(t,tx,y,c)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement