Add app.command.PaletteSize

This commit is contained in:
David Capello 2019-01-06 18:24:17 -03:00
parent 6b432ea268
commit 4b331f781a

View File

@ -97,3 +97,12 @@ do -- Cel Opacity
app.undo()
assert(c.opacity == 255)
end
do -- PaletteSize
local s = Sprite(32, 32)
assert(#s.palettes[1] == 256)
app.command.PaletteSize{ size=32 }
assert(#s.palettes[1] == 32)
app.command.PaletteSize{ size=8 }
assert(#s.palettes[1] == 8)
end