implement set_rotation and draw_line

This commit is contained in:
arne 2025-10-04 20:14:41 +02:00
commit 474aa42696
2 changed files with 37 additions and 0 deletions

View file

@ -1,6 +1,20 @@
local paper = require('paper')
paper.init()
paper.clear()
print(
'width: ' .. paper.get_width(),
'height: ' .. paper.get_height()
)
pad_w = paper.get_width() * 0.12
pad_h = paper.get_height() * 0.12
for i = 0, 15 do
for j = 1, 4 do
paper.draw_line(paper.get_height() / 16 * i, j, paper.get_width(), paper.get_height() - 4 + j, i * 16)
end
-- paper.draw_line(0, paper.get_height(), paper.get_width(), paper.get, i * 16)
end
paper.update()