Single file input.
This commit is contained in:
parent
af2081b594
commit
177fc416c3
10
demo.lua
10
demo.lua
|
@ -11,7 +11,7 @@ function to_chr(nb)
|
|||
return [[\x]]..add..string.format("%x", nb)
|
||||
end
|
||||
|
||||
file = io.open("imagination.py", "w")
|
||||
file = io.open("spring.py", "w")
|
||||
first = true
|
||||
pallet = {} --will store colors
|
||||
pallet_last = 0
|
||||
|
@ -25,12 +25,10 @@ def main():
|
|||
set_pixel(x,y,black)
|
||||
]])
|
||||
|
||||
for i = 1, 12, 1 do
|
||||
for i = 1, 1, 1 do
|
||||
print(i)
|
||||
do --open image
|
||||
path = "spongebob/resized_cropped_out-"
|
||||
if i < 10 then path = path.."0" end
|
||||
path = path..i.."0.png"
|
||||
path = "spring.png"
|
||||
local image = cairo.load_png(path)
|
||||
image_infos = {width = image:width(), height = image:height()}
|
||||
image_bitmap = image:bitmap()
|
||||
|
@ -68,5 +66,5 @@ for i = 1, 12, 1 do
|
|||
|
||||
first = false
|
||||
end
|
||||
file:write('\n wait_ac("Press AC/ON to continue...")')
|
||||
--file:write('\n wait_ac("Press AC/ON to continue...")')
|
||||
file:close()
|
||||
|
|
Loading…
Reference in New Issue