local monitor = peripheral.wrap("back")
monitor.clear()
while true do
y = rs.getBundledInput("back")
sleep(1)
if colors.test (y, colors.purple) == true then
print ("*----@----@----@----@")
sleep(1)
else
if colors.test (y, colors.purple) == false then
print ("@----@----@----@----@")
sleep(1)
end
sleep(1)
if colors.test (y, colors.red) == true then
print ("@++++@----@----@----@")
sleep(1)
else
if colors.test (y, colors.red) == false then
print ("@----@----@----@----@")
sleep(1)
end
if colors.test (y, colors.orange) == true then
print ("@----*----@----@----@")
sleep(1)
else
if colors.test (y, colors.orange) == false then
print ("@----@----@----@----@")
sleep(1)
end
if colors.test (y, colors.white) == true then
print ("@----@++++@----@----@")
sleep(1)
else
if colors.test (y, colors.white) == false then
print ("@----@----@----@----@")
sleep(1)
end
if colors.test (y, colors.lime) == true then
print ("@----@----*----@----@")
sleep(1)
else
if colors.test (y, colors.lime) == false then
print ("@----@----@----@----@")
sleep(1)
end
if colors.test (y, colors.blue) == true then
print ("@----@----@++++@----@")
sleep(1)
else
if colors.test (y, colors.blue) == false then
print ("@----@----@----@----@")
sleep(1)
end
if colors.test (y, colors.cyan) == true then
print ("@----@----@----*----@")
sleep(1)
else
if colors.test (y, colors.cyan) == false then
print ("@----@----@----@----@")
sleep(1)
end
if colors.test (y, colors.black) == true then
print ("@----@----@----@++++@")
sleep(1)
else
if colors.test (y, colors.black) == false then
print ("@----@----@----@----@")
sleep(1)
end
if colors.test (y, colors.magenta) == true then
print ("@----@----@----@----*")
sleep(1)
else
if colors.test (y, colors.magenta) == false then
print ("@----@----@----@----@")
sleep(1)
end
if colors.test (y, colors.pink) == true then
print (" + /")
sleep(1)
else
if colors.test (y, colors.pink) == false then
print (" \ /")
sleep(1)
end
if colors.test (y, colors.green) == true then
print (" \ +")
sleep(1)
else
if colors.test (y, colors.green) == false then
print (" \ /")
sleep(1)
end
if colors.test (y, colors.pink) == true then
print (" + /")
sleep(1)
else
if colors.test (y, colors.pink) == false then
print (" \ /")
sleep(1)
end
if colors.test (y, colors.green) == true then
print (" \ +")
sleep(1)
else
if colors.test (y, colors.green) == false then
print (" \ /")
sleep(1)
end
if colors.test (y, colors.brown) == true then
print (" *-----@")
sleep(1)
else
if colors.test (y, colors.brown) == false then
print (" @-----@")
sleep(1)
end
if colors.test (y, colors.yellow) == true then
print (" @+++++@")
sleep(1)
else
if colors.test (y, colors.yellow) == false then
print (" @-----@")
sleep(1)
end
if colors.test (y, colors.gray) == true then
print (" @-----*")
sleep(1)
else
if colors.test (y, colors.gray) == false then
print (" @-----@")
sleep(1)
end
end
Ok this is the baisc code that I've come up with, whats missing? I've not tested this yet as I'm at work (shhh dont tell the boss) but would like to sort out the code so i can test it as soon as I get home.