commit 7e8e1781944fc34251fed117657b64ffed8dc675 Author: Niles Rogoff Date: Sun Jun 26 10:35:34 2016 -0400 Initial commit diff --git a/1456217537339.png b/1456217537339.png new file mode 100644 index 0000000..1c8e8b9 Binary files /dev/null and b/1456217537339.png differ diff --git a/1459315798501-1.png b/1459315798501-1.png new file mode 100644 index 0000000..2bd9e2c Binary files /dev/null and b/1459315798501-1.png differ diff --git a/base.png b/base.png new file mode 100644 index 0000000..922a7d0 Binary files /dev/null and b/base.png differ diff --git a/final_1.png b/final_1.png new file mode 100644 index 0000000..fa21e16 Binary files /dev/null and b/final_1.png differ diff --git a/final_2.png b/final_2.png new file mode 100644 index 0000000..a1cb7ee Binary files /dev/null and b/final_2.png differ diff --git a/final_3.png b/final_3.png new file mode 100644 index 0000000..5192304 Binary files /dev/null and b/final_3.png differ diff --git a/final_4.png b/final_4.png new file mode 100644 index 0000000..51c61ee Binary files /dev/null and b/final_4.png differ diff --git a/overlay.png b/overlay.png new file mode 100644 index 0000000..b05a6e7 Binary files /dev/null and b/overlay.png differ diff --git a/qr.py b/qr.py new file mode 100644 index 0000000..a103189 --- /dev/null +++ b/qr.py @@ -0,0 +1,22 @@ +import PIL.Image +base = PIL.Image.open("base.png") +star = PIL.Image.open("star-ripped.png") +overlay = PIL.Image.new("RGBA", (base.width * star.width, base.height * star.height), (0,0,0,255)) +for x in range(overlay.width): + for y in range(overlay.height): + basecolor = base.getpixel((int(x/star.width), int(y/star.height))) + if basecolor == (255,0,0): + bow = 0 # Hard black (red) + color = (94,71,103,240) + elif basecolor == (0,0,255): + bow = 1 # Hard white (blue) + color = (233,229,222,240) + elif basecolor == (0,0,0): + bow = 2 # Soft black + color = (94,71,103, 255 - star.getpixel((x % star.width, y % star.height))[0]) + else: + bow = 3 # Soft white + color = (233,229,222, 255 - star.getpixel((x % star.width, y % star.height))[0]) + overlay.putpixel((x,y), color) + +overlay.save("overlay.png") diff --git a/star-ripped.png b/star-ripped.png new file mode 100644 index 0000000..2cccce1 Binary files /dev/null and b/star-ripped.png differ diff --git a/star.png b/star.png new file mode 100644 index 0000000..0a21e58 Binary files /dev/null and b/star.png differ diff --git a/star.xcf b/star.xcf new file mode 100644 index 0000000..057167e Binary files /dev/null and b/star.xcf differ diff --git a/star2.png b/star2.png new file mode 100644 index 0000000..dba1108 Binary files /dev/null and b/star2.png differ diff --git a/star3.png b/star3.png new file mode 100644 index 0000000..c96e848 Binary files /dev/null and b/star3.png differ diff --git a/star4.png b/star4.png new file mode 100644 index 0000000..7ec8fdf Binary files /dev/null and b/star4.png differ diff --git a/star5.png b/star5.png new file mode 100644 index 0000000..8a0b573 Binary files /dev/null and b/star5.png differ diff --git a/star6.png b/star6.png new file mode 100644 index 0000000..c389f70 Binary files /dev/null and b/star6.png differ diff --git a/star7.png b/star7.png new file mode 100644 index 0000000..2f664d4 Binary files /dev/null and b/star7.png differ diff --git a/star8.png b/star8.png new file mode 100644 index 0000000..75ea929 Binary files /dev/null and b/star8.png differ diff --git a/underlay.png b/underlay.png new file mode 100644 index 0000000..b257c78 Binary files /dev/null and b/underlay.png differ