Add index.html with basic documentation
This commit is contained in:
parent
14727e0124
commit
3a78fec456
5 changed files with 173 additions and 10 deletions
|
|
@ -1,33 +0,0 @@
|
|||
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()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue