From 177fc416c31a1c1ba5b1474e5d6dfebeafb6e3b9 Mon Sep 17 00:00:00 2001 From: KikooDX Date: Sun, 24 Jan 2021 13:29:39 +0100 Subject: [PATCH] Single file input. --- demo.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/demo.lua b/demo.lua index 5fdd7cf..3197ddb 100644 --- a/demo.lua +++ b/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()