summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-05 17:42:54 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-05 17:49:34 +0200
commit912a5659a97cfafbf03b4e2e6150e50cb4557393 (patch)
treeace70ce2c238b4f40ad5653bd2db803577964696 /tools
parentc65049a0cefa5416e62c6174432378e77dcffdd0 (diff)
downloadplantagenet-912a5659a97cfafbf03b4e2e6150e50cb4557393.tar.gz
check in generated rules.js
Diffstat (limited to 'tools')
-rw-r--r--tools/findcolor.sh5
-rw-r--r--tools/stickers.sh29
2 files changed, 34 insertions, 0 deletions
diff --git a/tools/findcolor.sh b/tools/findcolor.sh
new file mode 100644
index 0000000..25914fa
--- /dev/null
+++ b/tools/findcolor.sh
@@ -0,0 +1,5 @@
+for F in images/*.png
+do
+ BG=$(convert $F -format "#%[hex:u.p{$cx,2}]" info:)
+ echo $F $BG
+done
diff --git a/tools/stickers.sh b/tools/stickers.sh
new file mode 100644
index 0000000..c029dd0
--- /dev/null
+++ b/tools/stickers.sh
@@ -0,0 +1,29 @@
+function squash {
+ # stickers: 42x28
+ convert HIRES/output/$1.png -colorspace RGB -resize 84x56! -colorspace sRGB images/$1.png
+}
+
+squash label_0
+squash label_1
+squash label_2
+squash label_3
+squash label_4
+squash label_5
+squash label_6
+squash label_7
+squash label_8
+squash label_9
+squash label_10
+squash label_11
+squash label_12
+squash label_13
+squash label_14
+squash label_15
+squash label_16
+squash label_17
+squash label_18
+squash label_19
+squash label_20
+squash label_21
+squash label_22
+squash label_26