From b0f5ab492a3af336bc3672974971e0b5af400929 Mon Sep 17 00:00:00 2001 From: "navid.sassan" Date: Fri, 2 Apr 2021 16:30:11 +0200 Subject: [PATCH] testing --- energy_control | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/energy_control b/energy_control index 6a6ab1e..eb6f26b 100644 --- a/energy_control +++ b/energy_control @@ -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