add path.fillImage test

This commit is contained in:
Ryan Oldenburg 2021-12-03 19:30:03 -06:00
parent 0671bc9516
commit cee2f7ec3a
2 changed files with 10 additions and 0 deletions

BIN
tests/paths/pathHeart2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -131,6 +131,16 @@ block:
)
image.writeFile("tests/paths/pathHeart.png")
block:
let image = """
M 10,30
A 20,20 0,0,1 50,30
A 20,20 0,0,1 90,30
Q 90,60 50,90
Q 10,60 10,30 z
""".fillImage(100, 100, parseHtmlColor("#FC427B").rgba)
image.writeFile("tests/paths/pathHeart2.png")
block:
let image = newImage(100, 100)
image.fillPath(