Отладочные фишки Маджонга | Mahjong debug tiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
660B

  1. #!/bin/bash
  2. SRC="_фон-128.png"
  3. makeTexture()
  4. {
  5. src=$1
  6. char=$2
  7. # Имя файла без расширения.
  8. # File name without extension.
  9. dst="${src%.*}_${char}.png"
  10. convert -pointsize 20 -draw "text 30,85 '$char'" $src $dst
  11. }
  12. # Первые 34 группы фишек, по 4 каждой в поле.
  13. for i in {1..34}; do
  14. echo $i
  15. makeTexture $SRC $i
  16. done
  17. # Оставшиеся 8 фишек, по одной в поле.
  18. makeTexture $SRC "|ц"
  19. makeTexture $SRC "|ц|"
  20. makeTexture $SRC "||ц|"
  21. makeTexture $SRC "||ц||"
  22. makeTexture $SRC "|с"
  23. makeTexture $SRC "|с|"
  24. makeTexture $SRC "||с|"
  25. makeTexture $SRC "||с||"