Single file input.

This commit is contained in:
KikooDX 2021-01-24 13:29:39 +01:00
parent af2081b594
commit 177fc416c3
1 changed files with 4 additions and 6 deletions

View File

@ -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()