Difference between revisions of "Term.setBackgroundColor"
From ComputerCraft Wiki
| Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
{{Function | {{Function | ||
| − | |name= | + | |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) [ | + | |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 | + | |desc=Makes the background of the monitor grey |
| + | |code=term.setBackgroundColor(colors.grey) | ||
}} | }} | ||
}} | }} | ||
Revision as of 15:23, 17 November 2012
| 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
| Makes the background of the monitor grey | |
| Code |
term.setBackgroundColor(colors.grey) |