Add tiled test.

This commit is contained in:
treeform 2021-10-04 11:44:37 -07:00
parent d29b4e1c45
commit e486c25d7d
4 changed files with 12 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -237,3 +237,15 @@ block:
scale(vec2(263.86/40, 263.86/40))
a.draw(b, m)
doDiff(a, "smooth11")
block:
let
a = newImage(100, 100)
b = readImage(&"tests/images/turtle.png")
a.fill(rgba(255, 255, 255, 255))
let m = translate(vec2(50, 50)) * rotate(-5.toRadians)
a.draw(b, m * translate(vec2(0,0)))
a.draw(b, m * translate(vec2(-40,0)))
a.draw(b, m * translate(vec2(-40,-40)))
a.draw(b, m * translate(vec2(0,-40)))
doDiff(a, "smooth12")