20 lines
456 B
Lua
20 lines
456 B
Lua
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()
|