From: Matteo Nastasi Date: Sun, 3 May 2020 07:19:44 +0000 (+0200) Subject: updates X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=a0a60175da199e687e19998d4d3fe35f82682d31;p=brisk-img.git updates --- diff --git a/bin/sprite_main.sh b/bin/sprite_main.sh index 76aaa57..a3548a6 100755 --- a/bin/sprite_main.sh +++ b/bin/sprite_main.sh @@ -1,14 +1,3 @@ #!/bin/bash ./bin/borderizer.sh briskin5/img briskin5/img/with_border_template.png "" ./bin/spriter.sh briskin5/img "_bord" briskin5/img/cards_xx - -# geeqie briskin5/img/cards_xx_bord.png - - -# ./bin/borderizer.sh briskin5/img briskin5/img/with_border_template_side.png "_ea" -# ./bin/spriter.sh briskin5/img "_bord_ea" briskin5/img/cards_xx -# geeqie briskin5/img/cards_xx_bord_ea.png - -# ./bin/borderizer.sh briskin5/img briskin5/img/with_border_template_side.png "_we" -# ./bin/spriter.sh briskin5/img "_bord_we" briskin5/img/cards_xx -# geeqie briskin5/img/cards_xx_bord_we.png diff --git a/bin/spriter.sh b/bin/spriter.sh index bc53357..e9f4026 100755 --- a/bin/spriter.sh +++ b/bin/spriter.sh @@ -19,6 +19,13 @@ h=$(identify -format "%h" ${fold}/00${sfx}.png) 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 @@ -36,6 +43,14 @@ for direction in "" "_ea" "_we"; do y=$(((card % 5) * w)) fi + card_id=$(printf "%02d" "$((seed * 10 + card))") + cat <> $cssname +img[data-card-id="${card_id}${direction}"] { + background: url('img/cards_xx${direction}.png') -${x}px -${y}px; +} + +EOF + fin_no=$(printf "%s/%02d%s.png" "$fold" "$((seed * 10 + card))" "$sfx") fin=$(printf "%s/%02d%s%s.png" "$fold" "$((seed * 10 + card))" "$sfx" "$direction") if [ $seed -lt 4 ]; then @@ -62,4 +77,4 @@ for direction in "" "_ea" "_we"; do echo "Created ${fou}${sfx}${direction}.png" done -rm ${fou}${sfx}_bg.png ${fou}${sfx}_oriz_bg.png ${fold}/[0-3][0-9]${sfx}*.png +rm ${fold}/[0-3][0-9]${sfx}*.png ${fou}${sfx}_bg.png ${fou}${sfx}_oriz_bg.png diff --git a/briskin5/img/cards_xx_empty.png b/briskin5/img/cards_xx_empty.png index 32b8ae4..7471f74 100644 Binary files a/briskin5/img/cards_xx_empty.png and b/briskin5/img/cards_xx_empty.png differ diff --git a/briskin5/img/cards_xx_empty_ea.png b/briskin5/img/cards_xx_empty_ea.png index 74d45ed..6cf9036 100644 Binary files a/briskin5/img/cards_xx_empty_ea.png and b/briskin5/img/cards_xx_empty_ea.png differ diff --git a/briskin5/img/cards_xx_empty_we.png b/briskin5/img/cards_xx_empty_we.png index 74d45ed..6cf9036 100644 Binary files a/briskin5/img/cards_xx_empty_we.png and b/briskin5/img/cards_xx_empty_we.png differ