eniallator

compact SLEG

Oct 9th, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. w,h = 27,32
  2. for i=1,w do
  3.    o = ""
  4.    for j=1,h-1 do
  5.       e = h/w*i-(h/w*w)+h
  6.       if e%1<0.5 and e%1>-0.5 then
  7.          e = e-1
  8.       end
  9.       e = 1+e-e%1
  10.       if j==e then
  11.          o = o.."█"
  12.       end
  13.       o = o.." "
  14.    end
  15.    print(o)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment