printer.getPageSize

From ComputerCraft Wiki
Revision as of 16:06, 3 May 2013 by Smiley43210 (Talk | contribs) (Changed parent api)

Jump to: navigation, search


Grid Redstone.png  Function printer.getPageSize
Returns the size of the page.
Syntax printer.getPageSize()
Returns Width and Height of the Page in the Printer
Part of ComputerCraft
API printer

Examples

Grid paper.png  Example
Prints the size of a page.
Code
local x, y = printer.getPageSize()
print(x ..", ".. y)
Output <width>, <height>