X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk-img.git;a=blobdiff_plain;f=bin%2Fspriter.sh;h=981b77bd455b63cf965e6b1d672e99da730bfc27;hp=a97225123d9ff99922948824a90e766dd0c7e862;hb=5340c7d531e490786bb97dc19348297481b61f7b;hpb=f786208cbace6c41d3512bcb44a672355d671d64 diff --git a/bin/spriter.sh b/bin/spriter.sh index a972251..981b77b 100755 --- a/bin/spriter.sh +++ b/bin/spriter.sh @@ -14,15 +14,18 @@ fou=$3 w=$(identify -format "%w" ${fold}/00${sfx}.png) h=$(identify -format "%h" ${fold}/00${sfx}.png) -convert -size $((w * 8))x$((h * 6)) xc:none ${fou}${sfx}_bg.png +convert -size $((w * 9))x$((h * 5)) xc:none ${fou}${sfx}_bg.png argz="${fou}${sfx}_bg.png" -for seed in 0 1 2 3; do +for seed in 0 1 2 3 4; do for card in $(seq 0 9); do x=$(((seed * 2 + card / 5) * w)) y=$(((card % 5) * h)) argz="$argz $(printf "%s/%02d%s.png" "$fold" "$((seed * 10 + card))" "$sfx") -geometry +${x}+${y} -composite " + if [ $seed -eq 4 ]; then + break + fi done done