Упорядочить | Standardize

This commit is contained in:
2020-11-27 13:49:23 +03:00
parent b475935aa9
commit 24b90d82da
46 changed files with 55 additions and 56 deletions

View File

@@ -1,27 +1,26 @@
#!/bin/bash
SRC="_фон-128.png"
SRC="фон-128.png"
makeTexture()
{
src=$1
char=$2
# Имя файла без расширения.
# File name without extension.
dst="${src%.*}_${char}.png"
id=$2
char=$3
dst="${id}.png"
convert -pointsize 20 -draw "text 30,85 '$char'" $src $dst
}
# Первые 34 группы фишек, по 4 каждой в поле.
for i in {1..34}; do
echo $i
makeTexture $SRC $i
makeTexture $SRC $(printf '%02d' $i) $i
done
# Оставшиеся 8 фишек, по одной в поле.
makeTexture $SRC "|ц"
makeTexture $SRC "|ц|"
makeTexture $SRC "||ц|"
makeTexture $SRC "||ц||"
makeTexture $SRC "|с"
makeTexture $SRC "|с|"
makeTexture $SRC "||с|"
makeTexture $SRC "||с||"
makeTexture $SRC 35 "|ц"
makeTexture $SRC 36 "|ц|"
makeTexture $SRC 37 "||ц|"
makeTexture $SRC 38 "||ц||"
makeTexture $SRC 39 "|с"
makeTexture $SRC 40 "|с|"
makeTexture $SRC 41 "||с|"
makeTexture $SRC 42 "||с||"