monitor.setTextScale
Sets a monitor peripheral's text scale. It must be a multiple of 0.5 between 0.5 and 5. The default value is 1.
|
|||
| Sets a text scale to display smaller text | |||
| Code | <nowiki>
local mon = peripheral.find("monitor")
mon.setTextScale(0.5)
mon.write("Hello, World!")
</nowiki>
|
||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| monitor.setTextScale Function | |
|---|---|
|
Syntax monitor.setTextScale(
| |
| Returns | nil |
| API | Monitor |
| Source | CC:Tweaked |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.