Difference between revisions of "Monitor.setTextScale"

From ComputerCraft Wiki
Jump to: navigation, search
(Added NeedsWork tag.)
(Adding a note about the impact of setTextScale on paintutils)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{NeedsWork|This page references the monitor api, of which there is none that I can tell. It's a peripheral specific function, so should there be a page for it?}}
 
 
{{lowercase}}
 
{{lowercase}}
 
{{Function
 
{{Function
 
|name=monitor.setTextScale
 
|name=monitor.setTextScale
 
|args={{type|number}} scale
 
|args={{type|number}} scale
|api=monitor
+
|api=Term
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Sets the size of all text on the monitor. scale can be any multiple of 0.5, starting at 0.5 and ending at 5.
+
|desc=Sets the size of all text on the monitor. scale can be any multiple of 0.5, starting at 0.5 and ending at 5. Also changes the size of pixels drawn by the [[paintutils (API)|paintutils API]].
 
|examples=
 
|examples=
 
{{Example
 
{{Example
 
|desc=Sets the monitor's text scale to 2.
 
|desc=Sets the monitor's text scale to 2.
|code=monitor.setTextScale(2)
+
|code=local monitor = [[peripheral.wrap]]("left")
|output=none
+
monitor.setTextScale(2)
 
}}
 
}}
 
}}
 
}}
  
 
[[Category:API_Functions]]
 
[[Category:API_Functions]]

Latest revision as of 01:44, 22 September 2014


Grid Redstone.png  Function monitor.setTextScale
Sets the size of all text on the monitor. scale can be any multiple of 0.5, starting at 0.5 and ending at 5. Also changes the size of pixels drawn by the paintutils API.
Syntax monitor.setTextScale(number scale)
Returns nil
Part of ComputerCraft
API Term

Examples

Grid paper.png  Example
Sets the monitor's text scale to 2.
Code
local monitor = peripheral.wrap("left")
monitor.setTextScale(2)