A few fixes. Draft Synchrone2 (not working at all right now)
[vchess.git] / client / public / images / pieces / Otage / script.sh
1 taille=64
2 for color in w b; do
3 [[ $color = 'w' ]] && oppCol='b' || oppCol='w'
4 for captured in p r n b q k; do
5 convert $color$captured.png -resize "$taille"x"$taille" $color"$captured"_small.png
6 for piece in p r n b q k; do
7 convert -composite -gravity center $oppCol$piece.png $color"$captured"_small.png $color$captured$piece.png
8 done
9 done
10 done
11 # Finally: manual renaming (TODO)