aboutsummaryrefslogtreecommitdiff
path: root/experiments/conv/png2pc
diff options
context:
space:
mode:
Diffstat (limited to 'experiments/conv/png2pc')
-rwxr-xr-xexperiments/conv/png2pc7
1 files changed, 6 insertions, 1 deletions
diff --git a/experiments/conv/png2pc b/experiments/conv/png2pc
index d1eaab8..21b3b29 100755
--- a/experiments/conv/png2pc
+++ b/experiments/conv/png2pc
@@ -1,7 +1,7 @@
#!/bin/python3
import itertools
import io
-from PIL import Image
+from PIL import Image, ImageDraw
from consts import *
from shared import main
@@ -37,6 +37,11 @@ def png2pc(data):
img = img.convert('RGB')
img = img.quantize(palette=palette_img)
+ draw = ImageDraw.Draw(img)
+ draw.rectangle(((0, 0), (24, img.height)), fill=0)
+ draw.rectangle(((252, 0), (256, img.height)), fill=0)
+ draw.rectangle(((24, 0), (79, 16)), fill=0)
+
output = b""
for tile_idx in range(tile_count):
tile = (