Difference between revisions of "Term.setBackgroundColor"
From ComputerCraft Wiki
Smiley43210 (Talk | contribs) m (Wording doesn't match) |
Bomb Bloke (Talk | contribs) (Note re non-colour systems.) |
||
Line 6: | Line 6: | ||
|api=term | |api=term | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Changes the background color of text subsequently written to the screen. For ease of use, it is best to use the color codes provided in the colors API. | + | |desc=Changes the background color of text subsequently written to the screen. For ease of use, it is best to use the color codes provided in the [[colors (API)|colors API]]. Note that non-advanced systems only have black and white displays, though the background color may still be set to either of these two shades.<br><br> |
+ | |||
+ | See also: [[term.setTextColor|term.setTextColor()]] | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
− | |desc=Makes the background of | + | |desc=Makes the background of following text writes gray, then writes empty spaces over the entire screen: |
− | |code=term.setBackgroundColor(colors.gray) | + | |code= term.setBackgroundColor(colors.gray) |
+ | term.clear() | ||
}} | }} | ||
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
Revision as of 12:20, 6 April 2014
Function term.setBackgroundColor | |
Changes the background color of text subsequently written to the screen. For ease of use, it is best to use the color codes provided in the colors API. Note that non-advanced systems only have black and white displays, though the background color may still be set to either of these two shades. See also: term.setTextColor() | |
Syntax | term.setBackgroundColor(color code) |
Returns | None |
Part of | ComputerCraft |
API | term |
Examples
Example | |
Makes the background of following text writes gray, then writes empty spaces over the entire screen: | |
Code |
term.setBackgroundColor(colors.gray) term.clear() |