summaryrefslogtreecommitdiff
path: root/tools/slice.sh
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-12 14:34:56 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-12 17:39:46 +0100
commit0cee28075504d3354e5c327200d472c760452b94 (patch)
treed4c87746e5365e553ded624bd4c7500f0607372a /tools/slice.sh
parent9323f62100b1f74ac5361b86cc53655adaee9572 (diff)
downloadrichard-iii-0cee28075504d3354e5c327200d472c760452b94.tar.gz
Show border limits.
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