Difference between revisions of "Term.setBackgroundColor"

From ComputerCraft Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
{{Function
 
{{Function
|name=Term.setBackgroundColor
+
|name=term.setBackgroundColor
 
|args= [[Colors#Colors|color]] code
 
|args= [[Colors#Colors|color]] code
 
|returns=None
 
|returns=None
 
|api=term
 
|api=term
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|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]
+
|desc=changes the color of the background of your terminal/monitor (For common use add the decimal code of the color) [Does not change previously printed text's background]
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Makes the background of the monitor grey,and clear screen for updating |code=term.setBackgroundColor(128)<br>term.clear()
+
|desc=Makes the background of the monitor grey
 +
|code=term.setBackgroundColor(colors.grey)
 
}}
 
}}
 
}}
 
}}

Revision as of 15:23, 17 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) [Does not change previously printed text's background]
Syntax term.setBackgroundColor(color code)
Returns None
Part of ComputerCraft
API term

Examples

Grid paper.png  Example
Makes the background of the monitor grey
Code
term.setBackgroundColor(colors.grey)