Posted 21 March 2016 - 10:11 PM
is there a way to visualizing text positions? like with random colors or a checker board pattern
local tColorIndex = {
[0] = { [0] = colors.white, [1] = colors.black },
[1] = { [0] = colors.black, [1] = colors.white },
}
local maxx, maxy = term.getSize()
for x = 1, maxx do
for y = 1, maxy do
term.setCursorPos( x, y )
term.setBackgroundColor( tColorIndex[ x % 2 ][ y % 2 ] )
term.write( " " )
end
end