Posted 21 June 2014 - 06:11 AM
how do you change text scale more than 5.Because i have a reallt big monitor and need bigger words.
local bigChars = {["E"] = {{1,1,1},{1,0,0},{1,1,1},{1,0,0},{1,1,1}},
["H"] = {{1,0,1},{1,0,1},{1,1,1},{1,0,1},{1,0,1}},
["I"] = {{0,1,0},{0,1,0},{0,1,0},{0,1,0},{0,1,0}},
["K"] = {{1,0,1},{1,0,1},{1,1,0},{1,0,1},{1,0,1}},
["L"] = {{1,0,0},{1,0,0},{1,0,0},{1,0,0},{1,1,1}},
["S"] = {{1,1,1},{1,0,0},{1,1,1},{0,0,1},{1,1,1}},
["T"] = {{1,1,1},{0,1,0},{0,1,0},{0,1,0},{0,1,0}},
[" "] = {{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}}}
local function drawChar(character)
local xPos, yPos = term.getCursorPos()
for y = 1, 5 do
term.setCursorPos(xPos, y)
for x = 1, 3 do
term.setBackgroundColor(bigChars[character][y][x] == 1 and colours.white or colours.black)
term.write(" ")
end
end
term.setCursorPos(xPos + 4, yPos)
end
local function bigWrite(text)
for i = 1, #text do
drawChar(text:sub(i,i))
end
end
term.clear()
term.setCursorPos(1,1)
bigWrite("LIKE THIS")
A:
A
A A
AAA
A A
A A
B:
BB
B B
BB
B B
BB
C:
CC
C
C
C
CC
D:
DD
D D
D D
D D
DD
Etc.