Posted 04 November 2013 - 12:50 AM
So I have this problem when I restart the program, there is a chance I have this weird color bug with the text.
Here is my code:
This is what happen when the code is restarting the code several time
to
Here is my code:
local m = peripheral.wrap("left")
local width = 180
local height = 80
m.clear()
local box = m.addBox(10,10,width,height,0xFFFF,0.5)
local text1 = m.addText((((170/4)-string.len(textutils.formatTime(os.time(),false)))/2),70/2,"",0xFFF)
while true do
text1.setScale(4)
text1.setText(textutils.formatTime(os.time(),false))
sleep(.1)
end
This is what happen when the code is restarting the code several time
to