Difference between revisions of "Term.setTextColor"

From ComputerCraft Wiki
Jump to: navigation, search
Line 9: Line 9:
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Makes the words hello world! grey |code=Term.SetTextcolor(128)<br>print("Hello World!")
+
|desc=Makes the words Hello World! green.
 +
|code=term.setTextColor(colors.green)<br>print("Hello World!")
 
}}
 
}}
 
}}
 
}}

Revision as of 15:20, 17 November 2012


Grid Redstone.png  Function Term.setTextColor
changes the color of your font (For common use add the decimal code of the color)
Syntax Term.setTextColor(color code)
Returns None
Part of ComputerCraft
API term

Examples

Grid paper.png  Example
Makes the words Hello World! green.
Code
term.setTextColor(colors.green)
print("Hello World!")