Posted 25 May 2015 - 08:02 PM
So there is a program that generates the window:57: error with the following program and I can't figure out why…
local Main = {};
Main.Draw = {
DrawCharacters = function (x, y, text, textColor, backgroundColor)
term.setBackgroundColor (backgroundColor);
term.setTextColor (textColor);
term.setCursorPos (x, y);
term.write (text);
end,
}
function init ()
Main.Draw.DrawCharacters (5, 10, "Hello, World!", colors.green, colors.grey);
end
—–
I've read about what causes the error, but on this computer it doesn't?
term.setBackgroundColor (colors.lightGrey);
term.setTextColor (colors.red);
term.write ("Test!");
local Main = {};
Main.Draw = {
DrawCharacters = function (x, y, text, textColor, backgroundColor)
term.setBackgroundColor (backgroundColor);
term.setTextColor (textColor);
term.setCursorPos (x, y);
term.write (text);
end,
}
function init ()
Main.Draw.DrawCharacters (5, 10, "Hello, World!", colors.green, colors.grey);
end
—–
I've read about what causes the error, but on this computer it doesn't?
term.setBackgroundColor (colors.lightGrey);
term.setTextColor (colors.red);
term.write ("Test!");