Advanced Monitor
Advanced Monitor | |
Item ID | ComputerCraft:CC-Peripheral |
Damage Value | 4 |
Peripheral? | Yes- Term (API) |
The Advanced Monitor is a Monitor that has mouse (as 'punches') support, and can use the Color API for screen colors. They resemble the traditional computer console, but are golden coloured to match their crafting recipe. By default, an advanced monitor has a resolution of 7 pixels horizontally by 5 pixels horizontally, but this can be increased by using the monitor API and combining monitors (see explanation on the resolution page).
Crafting
Using an Advanced Monitor
The Advanced Monitor behaves exactly the same as the standard Monitor - except the Advanced Monitor is able to render text with a foreground and background color.
The Advanced Monitor introduces two new methods: monitor.setTextColor(color) and monitor.setBackgroundColor(color). These functions allow you to draw text with a specific foreground and background color. Please note that both spellings of the word color are accepted.
To use an Advanced Monitor, you need to either call a method directly using peripheral.call(), or, wrap the monitor using the Peripheral API. Wrapped monitors provide all functions listed in the Term API, with the exception of monitor.setTextScale(size), which is native to monitors only.
For this example, we have an Advanced Monitor connected to the top of our Computer:
-- Immediately invoke a method without wrapping peripheral.call( "top", "write", "Hello World!" )
-- You can also "wrap" the peripheral side to a variable: local monitor = peripheral.wrap( "top" ) monitor.write( "Hello World!" )
History
1.45 | Added Advanced Monitors. |
---|---|
1.48 | Changed crafting recipe. |
Can now be used as touchscreens. | |
1.51 | Event monitor_resize is send when rezising the monitor. |
1.53 | Can now be placed on floors and ceilings. |
1.55 | Tweaked screen colours. |
1.75 | Fixed rendering. |
ComputerCraft Blocks and Items | |||
Blocks | |||
Computer | Advanced Computer | Command Computer | Disk Drive |
Monitor | Advanced Monitor | Printer | Turtle |
Wireless Modem | Ender Modem | Wired Modem | Networking Cable |
Items | |||
Pocket Computer | Advanced Pocket Computer | Floppy Disk | Printed Page |
Printed Pages | Printed Book |