general mindustry schematic tools
Diffstat (limited to 'siphon.sh')
-rw-r--r--siphon.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/siphon.sh b/siphon.sh
new file mode 100644
index 0000000..f0c579f
--- /dev/null
+++ b/siphon.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+echo "{"
+for file in src/*.png; do
+ if [[ $file == "src/spritesheet.png" ]]; then
+ continue
+ fi
+ o=$(~/MSchemGen/img2json/avgcolor.py "$file")
+ file=$(basename "$file")
+ file=${file//$'-ui.png'/}
+ file=${file//$'block-'/}
+ echo "$o: \"$file\","
+done
+echo "}"