printer.getPageSize

From ComputerCraft Wiki
Revision as of 16:27, 13 November 2012 by MathManiac0 (Talk | contribs) (Added Page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 peripheral

Examples

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