Looping shit.

This commit is contained in:
KikooDX 2020-04-25 18:38:22 +02:00
parent 9ebcb41937
commit 1a93942080
2 changed files with 35 additions and 33 deletions

View File

@ -15,6 +15,7 @@ pallet_last = 0
mem_pallet_last = 0
file:write([[from draw import *
while 1:
]])
for i = 1, 12, 1 do
@ -29,7 +30,7 @@ for i = 1, 12, 1 do
end
local getpixel, setpixel = bitmap.pixel_interface(image_bitmap)
file:write("\n", [[data=b"]])
file:write("\n ", [[data=b"]])
--end
for j = 1, image_infos.height, 1 do
@ -47,14 +48,14 @@ for i = 1, 12, 1 do
--let's write the pallet
if pallet_last > mem_pallet_last then
mem_pallet_last = pallet_last
file:write("\npallet={")
file:write("\n pallet={")
for i, v in pairs(pallet) do
file:write(v, ":(", i, "),")
end
file:write("}")
end
file:write("\ndraw(", math.floor(192 - image_infos.width / 2), ",")
file:write("\n draw(", math.floor(192 - image_infos.width / 2), ",")
file:write(math.floor(96 - image_infos.height / 2), ",data,pallet,")
file:write(image_infos.width, ")")

File diff suppressed because one or more lines are too long