From 246635ba26762642f5a790b0ced16e7e947ff349 Mon Sep 17 00:00:00 2001 From: Niles Rogoff Date: Fri, 8 Jul 2016 22:02:43 -0400 Subject: [PATCH] Added new test images --- test/gentest.py | 18 ++++++++++++++++++ test/test2.5.png | Bin 0 -> 1840 bytes test/test2.png | Bin 189 -> 975 bytes 3 files changed, 18 insertions(+) create mode 100644 test/gentest.py create mode 100644 test/test2.5.png 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 0000000000000000000000000000000000000000..f143afb6380190da0aa534b2bec9a3487811a106 GIT binary patch literal 1840 zcmeAS@N?(olHy`uVBq!ia0vp^{}~vVA~=|UETuQgA2BenefM;645^s&_U^`B6+;1* zgR|KGmd{k*!|$!A9KbebLdH{rJNf0e)5Y%Wcbxj`WsrUBtL5H*OIFU;`+9k4-L5PC z)5#I6ya&r8#P_Knm?yZ--u)%!B}|B4@q^Kiudy@GA; z?vR`mKD8OgQrE;^+kXH1?X_9F_&4@sYPJ6V-L!8xxGcq;uIJv(E#JNVzt9g;9BF6W z=C?nCccuB05xh6I*OuR}{oA|r=KAM2BB%6EkbWdCS3m!Id}>-hE{jXIZI z!C@!v5^3G${NL~P{r)BGy*d6o4&ASREREZQD+QnX-LHLC?kp~?Ik(rXujVYmk>tot z|fNIm>n?E<14-N$K~$-L3up)qGmo{&_fb zU;pU6Hw9NBocmoqe3tDjTv~5#i;e#-^aMxVc*>i;3zwJnJj}U^%hJD${c+xFR&CpS R1y~a@c)I$ztaD0e0szshR=EHG literal 0 HcmV?d00001 diff --git a/test/test2.png b/test/test2.png index c52620048b93ae9a6c0c91fcb7e82af9411816fb..440f7eabd682873b549ae1b62d90e09e5866a560 100644 GIT binary patch literal 975 zcmeAS@N?(olHy`uVBq!ia0y~yV4MKL985qF{<{ljGcYhu^K@|xshIQjjw0V-0|ADE z-cSG6Te9XZU9`gStef!xLxT?!rv`4DIdkUQ&2l;K3LgYbH(XzNw))k9WCkS`?h^t! z3eFoEcn&fdk;F+pyYK&RJ_h@bhe*_jVp;O+oA>WuuiCKlc%yghu|3aB-_K-@i*RU5 zV3cfPP2mumphzlb&ELP<>&pIsokP$}e3$+V4WN*0W=KSdbAE1aYF-JD%fR4Vl$uzQ znxasiS(2gP?&%wlqL<1J6j$_gaSY+Oo}7@7@Pq%b&;NyI{{R1PY{16CVsL;#m|2K{ YA?6?F+wY7*?I2S;UHx3vIVCg!0DuZG@Bjb+