Posted 04 August 2015 - 02:03 AM
I have this code but it prints the art in the top left of the screen:
What I am trying to do is center the ASCII Art found at pastebin.com/x0yd4h9D in the direct center x and center y without it getting distorted. When I have attempted to use over code, it puts the top line in the y center and it messes the spaces up on the x axis.
I am trying to have the middle line be in y center and have it so x won't distort the text because of the spaces.
Can someone help please?
local file = fs.open("piecinema/logo", "r")
if file then
local text = file.readAll()
file.close()
print(text)
else
print("PieCinema Logo Doesn't Exist! Downloading!")
shell.run("pastebin get x0yd4h9D piecinema/logo")
end
What I am trying to do is center the ASCII Art found at pastebin.com/x0yd4h9D in the direct center x and center y without it getting distorted. When I have attempted to use over code, it puts the top line in the y center and it messes the spaces up on the x axis.
I am trying to have the middle line be in y center and have it so x won't distort the text because of the spaces.
Can someone help please?