Added new test images
This commit is contained in:
parent
796269d58a
commit
246635ba26
|
@ -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")
|
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
test/test2.png
BIN
test/test2.png
Binary file not shown.
Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 975 B |
Loading…
Reference in New Issue