3 # Simple generation of 64x64 tiles
5 imgdir=../../koperkapel/images
9 mkdir -p ${imgdir}/$dir
12 inkscape -z -e ${imgdir}/${x%.*}.png -w 64 -h 64 $x
20 mkdir -p ${imgdir}/roach_${size}
25 inkscape -z -e ${imgdir}/roach_${size}/${xbase%.*}.png -w ${size} -h ${size} $x
31 mkdir -p ${imgdir}/roach_quartet
33 function quartet_tile {
34 for tile in roach eyes
36 montage ${imgdir}/roach_32/${tile}_${1}.png ${imgdir}/roach_32/${tile}_${2}.png ${imgdir}/roach_32/${tile}_${3}.png ${imgdir}/roach_32/${tile}_${4}.png -geometry -10+0 -background none ${imgdir}/roach_quartet/${tile}_${1}.png
47 mkdir -p ${imgdir}/roach_nonet
50 for tile in roach eyes
52 montage ${imgdir}/roach_21/${tile}_${1}.png ${imgdir}/roach_21/${tile}_${2}.png ${imgdir}/roach_21/${tile}_${3}.png ${imgdir}/roach_21/${tile}_${4}.png ${imgdir}/roach_21/${tile}_${1}.png ${imgdir}/roach_21/${tile}_${2}.png ${imgdir}/roach_21/${tile}_${3}.png ${imgdir}/roach_21/${tile}_${4}.png ${imgdir}/roach_21/${tile}_${1}.png -geometry +0+0 -background none - | convert - -background none -gravity southeast -splice 1x1 ${imgdir}/roach_nonet/${tile}_${1}.png