Test Sprite.backgroundLayer property

This commit is contained in:
David Capello 2018-09-12 18:45:44 -03:00
parent d3ae1c32c0
commit 330da97467

View File

@ -48,6 +48,7 @@ do -- Background/Transparent layers
app.bgColor = Color(32, 64, 128)
app.command.BackgroundFromLayer() -- the layer will be filled with app.bgColor
assert(s.layers[1].isBackground)
assert(s.layers[1] == s.backgroundLayer)
assert(s.cels[1].image:getPixel(0, 0) == app.pixelColor.rgba(32, 64, 128, 255))
app.command.LayerFromBackground()