Test Sprite.bounds

This commit is contained in:
David Capello 2018-11-14 16:53:11 -03:00
parent eeb2149c17
commit 01c9605a8c

View File

@ -8,6 +8,7 @@ do
assert(a.width == 32)
assert(a.height == 64)
assert(a.colorMode == ColorMode.RGB) -- RGB by default
assert(a.bounds == Rectangle{x=0, y=0, width=32, height=64})
-- Crop and resize
a.selection:select(2, 3, 4, 5)