Posted 26 January 2015 - 07:03 PM
I've tried to figure this out, but I can't. I'm making a color check program, which just looks through the colors, and prints them on the screen.
But I get "window:48: expected number". I tried looking at other posts, but wouldn't work. Please help.
Thanks!
But I get "window:48: expected number". I tried looking at other posts, but wouldn't work. Please help.
-- Setup
term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.grey)
textutils.slowPrint("Color check, started.")
sleep(2)
term.clear()
term.setCursorPos(27,3)
-- Code
term.setTextColor("colors.white")
textutils.slowPrint("White.")
print(" ")
sleep(1)
term.setTextColor("colors.grey")
textutils.slowPrint("Grey.")
print(" ")
sleep(1)
term.setTextColor("colors.blue")
textutils.slowPrint("Blue.")
print(" ")
sleep(1)
term.setTextColor("colors.cyan")
textutils.slowPrint("Cyan.")
print(" ")
sleep(1)
term.setTextColor("colors.darkblue")
textutils.slowPrint("Darkblue.")
print(" ")
sleep(1)
term.setTextColor("colors.lightblue")
textutils.slowPrint("Lightblue.")
print(" ")
sleep(1)
term.setTextColor("colors.red")
textutils.slowPrint("Red.")
print(" ")
sleep(1)
term.setTextColor("colors.darkred")
textutils.slowPrint("Darkred.")
print(" ")
sleep(1)
term.setTextColor("colors.green")
textutils.slowPrint("Green.")
print(" ")
sleep(1)
term.setTextColor("colors.lime")
textutils.slowPrint("Limegreen.")
print(" ")
sleep(1)
term.setTextColor("colors.yellow")
textutils.slowPrint("Yellow.")
print(" ")
sleep(1)
term.setTextColor("colors.pink")
textutils.slowPrint("Pink.")
print(" ")
sleep(1)
term.setTextColor("colors.purple")
textutils.slowPrint("Purple.")
print(" ")
sleep(1)
term.setTextColor("colors.Black")
term.setBackgroundColor("colors.grey")
textutils.slowPrint("Black.")
print(" ")
sleep(1)
term.setBackgroundColor("colors.black")
Thanks!
Edited on 27 January 2015 - 06:40 PM