Implement get_rotation

this also stops the automatic call to `.set_rotation` in `.init`; the default
rotation is landscape.
This commit is contained in:
arne 2025-10-04 22:21:39 +02:00
commit 8d460d4b04
2 changed files with 40 additions and 2 deletions

View file

@ -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()