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.

ExampleScale value retrieval
Sets a text scale to display smaller text
Code
<nowiki>
local mon = peripheral.find("monitor")
mon.setTextScale(0.5)
mon.write("Hello, World!")
    </nowiki>

monitor.setTextScale
Function
Syntax
monitor.setTextScale(
  • scale : number The scale to use for drawing text, 0.5 being the smallest and 5 being the biggest.
)

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.