Some fixes. Screen variant computer play is still broken, seemingly
[vchess.git] / client / public / images / pieces / Otage / script.sh
CommitLineData
9d15c433
BA
1taille=64
2for 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
10done
11# Finally: manual renaming (TODO)