organize tests/images a bit

This commit is contained in:
Ryan Oldenburg 2020-12-20 11:15:59 -06:00
parent 5174f7d8f8
commit da0527edcc
48 changed files with 15 additions and 15 deletions

View file

@ -16,7 +16,7 @@ block:
b.fill(rgba(255, 255, 255, 255)) b.fill(rgba(255, 255, 255, 255))
a.draw(b, vec2(25, 25)) a.draw(b, vec2(25, 25))
a.writeFile("tests/images/spread1.png") # a.writeFile("tests/images/spread1.png")
block: block:
var a = newImage(100, 100) var a = newImage(100, 100)
@ -33,7 +33,7 @@ block:
b.fill(rgba(255, 255, 255, 255)) b.fill(rgba(255, 255, 255, 255))
a.draw(b, vec2(25, 25)) a.draw(b, vec2(25, 25))
a.writeFile("tests/images/blur1.png") # a.writeFile("tests/images/blur1.png")
block: block:
var shadow: Image var shadow: Image
@ -57,7 +57,7 @@ block:
shadow.draw(b, vec2(25, 25)) shadow.draw(b, vec2(25, 25))
keep(shadow) keep(shadow)
shadow.writeFile("tests/images/shadow1.png") # shadow.writeFile("tests/images/shadow1.png")
# import print # import print

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

View file

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 975 B

After

Width:  |  Height:  |  Size: 975 B

View file

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

View file

Before

Width:  |  Height:  |  Size: 981 B

After

Width:  |  Height:  |  Size: 981 B

View file

Before

Width:  |  Height:  |  Size: 358 B

After

Width:  |  Height:  |  Size: 358 B

View file

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

Before

Width:  |  Height:  |  Size: 810 B

After

Width:  |  Height:  |  Size: 810 B

View file

Before

Width:  |  Height:  |  Size: 714 B

After

Width:  |  Height:  |  Size: 714 B

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -40,14 +40,14 @@ block:
let pathStr = "M 10 10 L 90 90" let pathStr = "M 10 10 L 90 90"
let color = rgba(255, 0, 0, 255) let color = rgba(255, 0, 0, 255)
image.strokePath(pathStr, color, 10) image.strokePath(pathStr, color, 10)
image.writeFile("tests/images/pathStroke1.png") image.writeFile("tests/images/paths/pathStroke1.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
let pathStr = "M 10 10 L 50 60 90 90" let pathStr = "M 10 10 L 50 60 90 90"
let color = rgba(255, 0, 0, 255) let color = rgba(255, 0, 0, 255)
image.strokePath(pathStr, color, 10) image.strokePath(pathStr, color, 10)
image.writeFile("tests/images/pathStroke2.png") image.writeFile("tests/images/paths/pathStroke2.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
@ -56,14 +56,14 @@ block:
rgba(255, 255, 0, 255), rgba(255, 255, 0, 255),
strokeWidth = 10 strokeWidth = 10
) )
image.writeFile("tests/images/pathStroke3.png") image.writeFile("tests/images/paths/pathStroke3.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
let pathStr = "M 10 10 H 90 V 90 H 10 L 10 10" let pathStr = "M 10 10 H 90 V 90 H 10 L 10 10"
let color = rgba(0, 0, 0, 255) let color = rgba(0, 0, 0, 255)
image.fillPath(pathStr, color) image.fillPath(pathStr, color)
image.writeFile("tests/images/pathBlackRectangle.png") image.writeFile("tests/images/paths/pathBlackRectangle.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
@ -71,7 +71,7 @@ block:
"M 10 10 H 90 V 90 H 10 L 10 10", "M 10 10 H 90 V 90 H 10 L 10 10",
rgba(255, 255, 0, 255) rgba(255, 255, 0, 255)
) )
image.writeFile("tests/images/pathYellowRectangle.png") image.writeFile("tests/images/paths/pathYellowRectangle.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
@ -85,7 +85,7 @@ block:
path, path,
rgba(255, 0, 0, 255) rgba(255, 0, 0, 255)
) )
image.writeFile("tests/images/pathRedRectangle.png") image.writeFile("tests/images/paths/pathRedRectangle.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
@ -93,7 +93,7 @@ block:
"M30 60 A 20 20 0 0 0 90 60 L 30 60", "M30 60 A 20 20 0 0 0 90 60 L 30 60",
parseHtmlColor("#FC427B").rgba parseHtmlColor("#FC427B").rgba
) )
image.writeFile("tests/images/pathBottomArc.png") image.writeFile("tests/images/paths/pathBottomArc.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
@ -107,7 +107,7 @@ block:
""", """,
parseHtmlColor("#FC427B").rgba parseHtmlColor("#FC427B").rgba
) )
image.writeFile("tests/images/pathHeart.png") image.writeFile("tests/images/paths/pathHeart.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
@ -115,7 +115,7 @@ block:
"M 20 50 A 20 10 45 1 1 80 50 L 20 50", "M 20 50 A 20 10 45 1 1 80 50 L 20 50",
parseHtmlColor("#FC427B").rgba parseHtmlColor("#FC427B").rgba
) )
image.writeFile("tests/images/pathRotatedArc.png") image.writeFile("tests/images/paths/pathRotatedArc.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
@ -123,7 +123,7 @@ block:
"M 0 50 A 50 50 0 0 0 50 0 L 50 50 L 0 50", "M 0 50 A 50 50 0 0 0 50 0 L 50 50 L 0 50",
parseHtmlColor("#FC427B").rgba parseHtmlColor("#FC427B").rgba
) )
image.writeFile("tests/images/pathInvertedCornerArc.png") image.writeFile("tests/images/paths/pathInvertedCornerArc.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
@ -131,7 +131,7 @@ block:
"M 0 50 A 50 50 0 0 1 50 0 L 50 50 L 0 50", "M 0 50 A 50 50 0 0 1 50 0 L 50 50 L 0 50",
parseHtmlColor("#FC427B").rgba parseHtmlColor("#FC427B").rgba
) )
image.writeFile("tests/images/pathCornerArc.png") image.writeFile("tests/images/paths/pathCornerArc.png")
block: block:
let image = newImage(100, 100) let image = newImage(100, 100)
@ -151,4 +151,4 @@ block:
path, path,
rgba(255, 0, 0, 255) rgba(255, 0, 0, 255)
) )
image.writeFile("tests/images/pathRoundRect.png") image.writeFile("tests/images/paths/pathRoundRect.png")