mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 04:21:32 +00:00
Test Sprite.backgroundLayer property
This commit is contained in:
parent
d3ae1c32c0
commit
330da97467
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user