diff --git a/test/gentest.py b/test/gentest.py new file mode 100644 index 0000000..438a9a4 --- /dev/null +++ b/test/gentest.py @@ -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") diff --git a/test/test2.5.png b/test/test2.5.png new file mode 100644 index 0000000..f143afb Binary files /dev/null and b/test/test2.5.png differ diff --git a/test/test2.png b/test/test2.png index c526200..440f7ea 100644 Binary files a/test/test2.png and b/test/test2.png differ