2019-03-15 20:04:19 +00:00
|
|
|
-- Copyright (C) 2019 Igara Studio S.A.
|
|
|
|
--
|
|
|
|
-- This file is released under the terms of the MIT license.
|
|
|
|
-- Read LICENSE.txt for more information.
|
|
|
|
|
|
|
|
local spr = Sprite(4, 4)
|
|
|
|
local cel = spr.cels[1]
|
|
|
|
assert(cel.bounds == Rectangle(0, 0, 4, 4))
|
|
|
|
|
2019-03-16 16:15:51 +00:00
|
|
|
app.toolStroke{
|
2019-03-15 20:04:19 +00:00
|
|
|
tool='pencil',
|
|
|
|
color=Color{ r=0, g=0, b=0 },
|
|
|
|
points={ Point(2, 2),
|
|
|
|
Point(3, 2) }}
|
|
|
|
assert(cel.bounds == Rectangle(2, 2, 2, 1))
|
|
|
|
|
2019-03-16 16:15:51 +00:00
|
|
|
app.toolStroke{
|
2019-03-15 20:04:19 +00:00
|
|
|
tool='eraser',
|
|
|
|
points={ Point(2, 2) }}
|
|
|
|
assert(cel.bounds == Rectangle(3, 2, 1, 1))
|