mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 18:20:44 +00:00
Add app.command.PaletteSize
This commit is contained in:
parent
6b432ea268
commit
4b331f781a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user