776540d07fbd6d4865e75b0e975b8f251137e7ae
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
11 # Finally: manual renaming (TODO)