28 lines
660 B
Bash
Executable File
28 lines
660 B
Bash
Executable File
#!/bin/bash
|
||
SRC="_фон-128.png"
|
||
|
||
makeTexture()
|
||
{
|
||
src=$1
|
||
char=$2
|
||
# Имя файла без расширения.
|
||
# File name without extension.
|
||
dst="${src%.*}_${char}.png"
|
||
convert -pointsize 20 -draw "text 30,85 '$char'" $src $dst
|
||
}
|
||
|
||
# Первые 34 группы фишек, по 4 каждой в поле.
|
||
for i in {1..34}; do
|
||
echo $i
|
||
makeTexture $SRC $i
|
||
done
|
||
# Оставшиеся 8 фишек, по одной в поле.
|
||
makeTexture $SRC "|ц"
|
||
makeTexture $SRC "|ц|"
|
||
makeTexture $SRC "||ц|"
|
||
makeTexture $SRC "||ц||"
|
||
makeTexture $SRC "|с"
|
||
makeTexture $SRC "|с|"
|
||
makeTexture $SRC "||с|"
|
||
makeTexture $SRC "||с||"
|