Difference between revisions of "Term.setTextColor"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} {{Function |name=Term.setTextColor |returns=None |api=term |addon=ComputerCraft |desc=changes the color of your font (here is a full list of [http://computercraf...")
 
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
{{Function
 
{{Function
|name=Term.setTextColor
+
|name=Term.setText
 +
|args= [http://computercraft.info/wiki/index.php?title=Colors#Colors color] code
 
|returns=None
 
|returns=None
 
|api=term
 
|api=term
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=changes the color of your font (here is a full list of [http://computercraft.info/wiki/index.php?title=Colors#Colors colors]. For common use add the decimal code of the color)
+
|desc=changes the color of your font (For common use add the decimal code of the color)
 
|examples=
 
|examples=
 
{{Example
 
{{Example

Revision as of 22:57, 30 October 2012


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

Examples

Grid paper.png  Example
Makes the words hello world! grey
Code
Term.SetTextcolor(128)
print("Hello World!")