testing
This commit is contained in:
parent
5c6260a077
commit
b0f5ab492a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user