Fixed an "overflow"

This commit is contained in:
KikooDX 2020-04-25 13:18:29 +02:00
parent 006a085814
commit 9ebcb41937
2 changed files with 21 additions and 20 deletions

View File

@ -2,6 +2,7 @@ local cairo = require'cairo' --used to open the file
local bitmap = require'bitmap' --used to read its content
function int_hex(nb)
if nb > 255 then print("uh", nb) end
if nb < 16 then add = "0"
else add = "" end
return [[\x]]..add..string.format("%x", nb)
@ -10,8 +11,8 @@ end
file = io.open("output.py", "w")
first = true
pallet = {} --will store colors
pallet_last = 1
mem_pallet_last = 1
pallet_last = 0
mem_pallet_last = 0
file:write([[from draw import *
]])

File diff suppressed because one or more lines are too long