You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
531 B
Bash
19 lines
531 B
Bash
9 years ago
|
#!/bin/bash
|
||
|
|
||
|
# Run this from the "parts" directory to composite the final 32 icons
|
||
|
# Also creates status (masked) variants of the icons while at it
|
||
|
|
||
|
set -e
|
||
|
|
||
|
mkdir -p status
|
||
|
i=0
|
||
|
|
||
|
for grid in '' '*_grid*'; do
|
||
|
for arrows in '' '*_arrows*'; do
|
||
|
for cell_marker in '' '*_cell_marker*'; do
|
||
|
files=$(echo $grid $arrows $cell_marker | tr ' ' '\n' | sort -n | tr '\n' ' ')
|
||
|
convert *backdrop* $files *terrain* -background transparent -mosaic \
|
||
|
-crop '23x48+25+0' *mask* -mosaic status/$i.png
|
||
|
i=$((i+1))
|
||
|
done;done;done;
|