Shall be centered now?
This commit is contained in:
parent
232d7be94b
commit
dc863ec613
5
demo.lua
5
demo.lua
|
@ -50,8 +50,9 @@ for i = 1, 12, 1 do
|
|||
end
|
||||
end
|
||||
|
||||
file:write("}\ndraw(", 192 - image_infos.width, ",", 96 - image_infos.height)
|
||||
file:write(",data,pallet,", image_infos.width, ")")
|
||||
file:write("}\ndraw(", math.floor(192 - image_infos.width / 2), ",")
|
||||
file:write(math.floor(96 - image_infos.height / 2), ",data,pallet,")
|
||||
file:write(image_infos.width, ")")
|
||||
end
|
||||
|
||||
file:close()
|
||||
|
|
Loading…
Reference in New Issue