Add index.html with basic documentation

This commit is contained in:
arne 2025-10-06 21:01:12 +02:00
commit 3a78fec456
5 changed files with 173 additions and 10 deletions

View file

@ -0,0 +1,33 @@
local math = require('math')
local paper = require('paper')
paper.init()
paper.set_rotation("portrait")
paper.clear()
local width = paper.get_width()
local height = paper.get_height()
print(
'width: ' .. width,
'height: ' .. height
)
paper.clear()
paper.fill_rect(0, 0, width, height, 0x22)
for i = 0, 4 do
local off = 40 * i
local color
if i % 2 == 0 then
color = 0x22
else
color = 0xDD
end
paper.fill_rect(off, off, width - off, height - off, color)
end
paper.update()