Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args={...}
- l=4
- br=1
- xOff=200
- yOff=0
- file=args[1]
- shell.run(file)
- t=peripheral.wrap("top")
- t.clear()
- fp=fs.open(file,"r")
- xMax=#color
- yMax=#color[1]
- for y=1,xMax do
- for x=1,yMax do
- --t.addText(i*1,y*1,"*",color[string.sub(line,i,i)])
- t.addBox(y*l+xOff,xMax*l-x*l+yOff,l,l,color[x][y],br)
- end
- end
- t.sync()
Add Comment
Please, Sign In to add comment