This commit is contained in:
navid.sassan 2021-04-02 16:30:11 +02:00
parent 5c6260a077
commit b0f5ab492a

View File

@ -45,20 +45,15 @@ end
function draw_screen()
while true do
term.clear()
term.setCursorPos(0, 0)
term.setTextColor(colors.white)
term.getBackgroundColor(colors.black)
-- term.clear()
-- term.setCursorPos(0, 0)
term.write('Press "R" to toggle the rainbows\n')
term.write('Rainbows state: ')
if redstone_toggle_state == true then
term.getBackgroundColor(colors.green)
term.write('On')
term.blit('On', colors.white, colors.green)
else
term.getBackgroundColor(colors.red)
term.write('Off')
term.blit('Off', colors.white, colors.red)
end
term.getBackgroundColor(colors.black)
sleep(0.5)
end
end