Initial commit

This commit is contained in:
Niles Rogoff 2016-06-26 10:35:34 -04:00
commit 7e8e178194
20 changed files with 22 additions and 0 deletions

BIN
1456217537339.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 KiB

BIN
1459315798501-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

BIN
base.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

BIN
final_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

BIN
final_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

BIN
final_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
final_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
overlay.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

22
qr.py Normal file
View File

@ -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")

BIN
star-ripped.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

BIN
star.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 B

BIN
star.xcf Normal file

Binary file not shown.

BIN
star2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

BIN
star3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

BIN
star4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

BIN
star5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

BIN
star6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

BIN
star7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

BIN
star8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

BIN
underlay.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB