Difference between revisions of "Printer.getPageSize"
From ComputerCraft Wiki
MathManiac0 (Talk | contribs) (Added Page) |
m (Moved to CAT:LuaCoreFunctions) |
||
| Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:Lua_Core_Functions]] | ||
Revision as of 18:50, 28 November 2012
| 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
| Prints the size of a page. | |
| Code |
local x, y = printer.getPageSize() |
| Output | <width>, <height> |