testing
This commit is contained in:
parent
5c6260a077
commit
b0f5ab492a
@ -45,20 +45,15 @@ end
|
|||||||
|
|
||||||
function draw_screen()
|
function draw_screen()
|
||||||
while true do
|
while true do
|
||||||
term.clear()
|
-- term.clear()
|
||||||
term.setCursorPos(0, 0)
|
-- term.setCursorPos(0, 0)
|
||||||
term.setTextColor(colors.white)
|
|
||||||
term.getBackgroundColor(colors.black)
|
|
||||||
term.write('Press "R" to toggle the rainbows\n')
|
term.write('Press "R" to toggle the rainbows\n')
|
||||||
term.write('Rainbows state: ')
|
term.write('Rainbows state: ')
|
||||||
if redstone_toggle_state == true then
|
if redstone_toggle_state == true then
|
||||||
term.getBackgroundColor(colors.green)
|
term.blit('On', colors.white, colors.green)
|
||||||
term.write('On')
|
|
||||||
else
|
else
|
||||||
term.getBackgroundColor(colors.red)
|
term.blit('Off', colors.white, colors.red)
|
||||||
term.write('Off')
|
|
||||||
end
|
end
|
||||||
term.getBackgroundColor(colors.black)
|
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user