Difference between revisions of "Advanced Computer"

From ComputerCraft Wiki
Jump to: navigation, search
(Merged Peripheral table for Consoles into here.)
m (Tidied up the "Exclusive Functions" bit ('twas ergh, for want of a better word (sound)).)
Line 7: Line 7:
 
  |Output=Advanced_Computer
 
  |Output=Advanced_Computer
 
  }}
 
  }}
 +
 
==Exclusive Functions==
 
==Exclusive Functions==
* term.setTextColor(colors[<color>])
+
[[Advanced Computer|Advanced Computers]] and [[Advanced Monitor|Advanced Monitors]] both have access to color-setting functions in the [[Term (API)]]. In contrast, the standard [[Computer|Computers]] and [[Monitor|Monitors]] do not have access to color-setting functions.
* term.setBackgroundColor(colors[<color>])
+
* (where <color> is the color as a string, like: "blue".)
+
NOTE: The '''colours''' table can be used instead of the '''colors''' table, the '''colours''' table exists because of spelling differences in "U.S. English" and "English English". The '''term.setTextColour()''' and '''term.setBackgroundColour()''' functions also exist for this same reason.
+
[[Category:Blocks]]
+
[[Category:Consoles]]
+
  
 
==Exclusive Programs & APIs==
 
==Exclusive Programs & APIs==
Line 39: Line 35:
 
|Gets the ID of the Computer or Turtle.
 
|Gets the ID of the Computer or Turtle.
 
|}
 
|}
 +
 +
[[Category:Blocks]][[Category:Consoles]]

Revision as of 00:04, 29 November 2012

An advanced computer running Paint, an exclusive program
The advanced computer is a computer that has mouse and colour API support. More exclusive features may be added in another update. They resemble the traditional computer console, but are golden coloured to match their crafting recipe.

Recipe

Gold_Ingot

Gold_Ingot

Gold_Ingot

Gold_Ingot

glass_pane

Gold_Ingot

Gold_Ingot

Gold_Ingot

Advanced_Computer



Exclusive Functions

Advanced Computers and Advanced Monitors both have access to color-setting functions in the Term (API). In contrast, the standard Computers and Monitors do not have access to color-setting functions.

Exclusive Programs & APIs

Peripheral Functions

computer stands for the variable you wrapped the computer to. Example: computer = peripheral.wrap( "top" )

Method name Description
computer.turnOn() Turns on the Computer or Turtle.
computer.shutdown() Shuts off the Computer or Turtle.
computer.reboot() Reboots the Computer or Turtle.
computer.getID() Gets the ID of the Computer or Turtle.