summaryrefslogtreecommitdiff
path: root/tools/slice.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slice.sh')
-rw-r--r--tools/slice.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/slice.sh b/tools/slice.sh
new file mode 100644
index 0000000..8053af7
--- /dev/null
+++ b/tools/slice.sh
@@ -0,0 +1,16 @@
+# white ffffff
+# red eb2127
+
+pnmcut -left 247 -top 394 -width 1736 -height 2232 tools/labels.ppm | pnmtopng > blocks300.png
+
+exit
+
+i=1
+for y in 394 642 890 1138 1386 1634 1882 2130 2378
+do
+ for x in 247 495 743 991 1239 1487 1735
+ do
+ pnmcut -left $x -top $y -width 248 -height 248 tools/labels.ppm > tools/b$i.ppm
+ i=$(expr $i + 1)
+ done
+done