Files
mahjong-otl-fishki-dbg-tiles/сгенерировать|generate

28 lines
660 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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 "||с||"