Added new test images

This commit is contained in:
Niles Rogoff 2016-07-08 22:02:43 -04:00
parent 796269d58a
commit 246635ba26
3 changed files with 18 additions and 0 deletions

18
test/gentest.py Normal file
View File

@ -0,0 +1,18 @@
import PIL.Image
import itertools
bar_height = 10
permutations = list(itertools.permutations([0, 255, "S", "S", "S"], 3))
image = PIL.Image.new("RGB", (255, bar_height * len(permutations))) # Size subject to change
offset = 0
for combination in permutations:
for x in range(255):
for y in range(offset * bar_height, (offset + 1) * bar_height):
color = []
for c in combination:
if type(c) == str:
color.append(x)
else:
color.append(c)
image.putpixel((x,y),tuple(color))
offset += 1
image.save("out.png")

BIN
test/test2.5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 975 B