mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 09:04:02 +00:00
Add app.command.PaletteSize
This commit is contained in:
parent
6b432ea268
commit
4b331f781a
@ -97,3 +97,12 @@ do -- Cel Opacity
|
|||||||
app.undo()
|
app.undo()
|
||||||
assert(c.opacity == 255)
|
assert(c.opacity == 255)
|
||||||
end
|
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