Отладочные фишки Маджонга | 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.

29 lines
687B

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