4 posts
Posted 18 April 2013 - 02:48 PM
Hello, this is my first program, so be very mean to me, lol just kidding. So far all this does is turn your text green, ONLY works on an advanced computer.
Spoiler
function downScreen()
term.setBackgroundColor(colors.blue)
for i = 1,20 do
print(" ")
sleep(0.5)
end
term.setBackgroundColor(colors.blue)
end
if term.isColor() then
downScreen()
term.setCursorPos(1,1)
print("Welcome to C07v0s color changer!")
term.write("Word: ")
local word = read()
term.setTextColor(colors.green)
print(word)
end
if not term.isColor() then
print("This program is only for advanced computers...........")
return
end
OR
Link
1214 posts
Location
The Sammich Kingdom
Posted 18 April 2013 - 02:54 PM
So where is the complexity in this?
4 posts
Posted 18 April 2013 - 03:23 PM
Lol I meant that as a joke.
645 posts
Location
'Merica
Posted 18 April 2013 - 06:02 PM
You should add color options. Just green is kinda week.
173 posts
Posted 18 April 2013 - 07:07 PM
Good for a first program only one real error I see. You don't close your print on line four, and could you explain the point of the downscreen function?
4 posts
Posted 19 April 2013 - 03:16 AM
^
Nope it does end, just I made it very long so it will fill the entire screen, BUT the reason for that is because most people do not do that to change screen color, so I thought it would be cooler this way.
1619 posts
Posted 19 April 2013 - 04:11 AM
Also the print statement in your down screen function isn't necessary, just use term.clearLine()
587 posts
Location
Wrocław, Poland
Posted 19 April 2013 - 09:47 AM
I just can't wait to see famous "No pics, No clicks" xD
Pretty nice app for first program :)/>
1214 posts
Location
The Sammich Kingdom
Posted 19 April 2013 - 09:54 AM
I just can't wait to see famous "No pics, No clicks" xD
Pretty nice app for first program :)/>
It isn't famous, it's annoying.
1114 posts
Location
UK
Posted 12 May 2013 - 09:57 AM
I just can't wait to see famous "No pics, No clicks" xD
Pretty nice app for first program :)/>
It isn't famous, it's annoying.
Infamous?