monitor.setTextScale

From ComputerCraft
Jump to: navigation, search

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

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.

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