From 912a5659a97cfafbf03b4e2e6150e50cb4557393 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 5 May 2024 17:42:54 +0200 Subject: check in generated rules.js --- tools/findcolor.sh | 5 +++++ tools/stickers.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tools/findcolor.sh create mode 100644 tools/stickers.sh (limited to 'tools') 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 -- cgit v1.2.3