Difference between revisions of "Monitor.setTextScale"
From ComputerCraft Wiki
m (Added to CAT:APIFunctions.) |
(Adding a note about the impact of setTextScale on paintutils) |
||
(8 intermediate revisions by 7 users not shown) | |||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=monitor.setTextScale | |name=monitor.setTextScale | ||
− | |args= | + | |args={{type|number}} scale |
− | |api= | + | |api=Term |
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Sets the size of | + | |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") |
− | + | monitor.setTextScale(2) | |
}} | }} | ||
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
Latest revision as of 01:44, 22 September 2014
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
Example | |
Sets the monitor's text scale to 2. | |
Code |
local monitor = peripheral.wrap("left") monitor.setTextScale(2) |