This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
secret1timb7's profile picture

How do i add color into my game

Started by secret1timb7, 04 October 2013 - 06:05 PM
secret1timb7 #1
Posted 04 October 2013 - 08:05 PM
How do i add color into my lua game,

Like lets put it this way

print("Hello World!")

How would i make the color behind those words blue? And only those words?



(When you answer if you can please try also sending the answer to timmymb6@gmail.com)

Thanks!
^_^/>
Lyqyd #2
Posted 05 October 2013 - 03:41 PM
Split into new topic.

Check out the wiki for the API calls term.setBackgroundColor and term.setTextColor.
apemanzilla #3
Posted 05 October 2013 - 03:43 PM
In addition to what Lyqyd said, don't forget that this will only work on advanced computers/monitors/turtles.
Wojbie #4
Posted 05 October 2013 - 03:49 PM
Not true - you can use it on standard computers too but you can only change it between white and black

So you can write white on black or black on white on standard :)/>
theoriginalbit #5
Posted 05 October 2013 - 10:01 PM
Not true - you can use it on standard computers too but you can only change it between white and black
Read next time.
How would i make the color behind those words blue?