Difference between revisions of "Term.setBackgroundColor"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} {{Function |name=Term.setBackgroundColor |args= color code |returns=None |api=term |addon=ComputerCraft |desc=changes the color of the backgrou...")
 
Line 6: Line 6:
 
|api=term
 
|api=term
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=changes the color of the background of your font (For common use add the decimal code of the color)
+
|desc=changes the color of the background of your terminal/monitor (For common use add the decimal code of the color) [Need screen refresh,with term.clear() by example]
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Makes the background of the words "hello world!" grey |code=term.setBackgroundColor(128)<br>print("Hello  World!")
+
|desc=Makes the background of the monitor grey,and clear screen for updating |code=term.setBackgroundColor(128)<br>term.clear()
 
}}
 
}}
 
}}
 
}}

Revision as of 07:04, 11 November 2012


Grid Redstone.png  Function Term.setBackgroundColor
changes the color of the background of your terminal/monitor (For common use add the decimal code of the color) [Need screen refresh,with term.clear() by example]
Syntax Term.setBackgroundColor(color code)
Returns None
Part of ComputerCraft
API term

Examples

Grid paper.png  Example
Makes the background of the monitor grey,and clear screen for updating
Code
term.setBackgroundColor(128)
term.clear()