Implement get_rotation
this also stops the automatic call to `.set_rotation` in `.init`; the default rotation is landscape.
This commit is contained in:
parent
a51f98b44f
commit
8d460d4b04
2 changed files with 40 additions and 2 deletions
|
|
@ -2,6 +2,7 @@ local math = require('math')
|
|||
local paper = require('paper')
|
||||
|
||||
paper.init()
|
||||
paper.set_rotation("portrait")
|
||||
paper.clear()
|
||||
|
||||
local width = paper.get_width()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue