term.setBackgroundColor

From ComputerCraft Wiki
Revision as of 06:55, 11 November 2012 by 81.245.134.150 (Talk) (Created page with "{{lowercase}} {{Function |name=Term.setBackgroundColor |args= color code |returns=None |api=term |addon=ComputerCraft |desc=changes the color of the backgrou...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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

Examples

Grid paper.png  Example
Makes the background of the words "hello world!" grey
Code
term.setBackgroundColor(128)
print("Hello World!")