+convert -size $((w * 9))x$((h * 5)) xc:none ${fou}${sfx}_bg.png
+convert -size $((h * 9))x$((w * 5)) xc:none ${fou}${sfx}_oriz_bg.png
+
+convert -size ${w}x${h} xc:none ${fou}${sfx}_empty.png
+convert -size ${h}x${w} xc:none ${fou}${sfx}_empty_eawe.png
+
+cssname="${fou}${sfx}.css"
+rm -f $cssname
+touch $cssname
+
+for direction in "" "_ea" "_we"; do
+ horiz_sfx=""
+ if [ "$direction" != "" ]; then
+ horiz_sfx="_oriz"
+ fi
+ argz="${fou}${sfx}${horiz_sfx}_bg.png"
+
+ for seed in 0 1 2 3 4; do
+ for card in $(seq 0 9); do
+ if [ "$direction" = "" ]; then
+ x=$(((seed * 2 + card / 5) * w))
+ y=$(((card % 5) * h))
+ else
+ x=$(((seed * 2 + card / 5) * h))
+ y=$(((card % 5) * w))
+ fi