Fixed an "overflow"
This commit is contained in:
parent
006a085814
commit
9ebcb41937
5
demo.lua
5
demo.lua
|
@ -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 *
|
||||
]])
|
||||
|
|
Loading…
Reference in New Issue