Игра Маджонг | Mahjong game
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.

37 lines
817B

  1. #!/bin/bash
  2. # Создать тему фишек на основе нейтральной и выбранной текстур.
  3. function gen
  4. {
  5. base=$1
  6. text=$2
  7. name=$3
  8. convert $base -pointsize 30 -draw "text 30,85 '$text'" $name
  9. }
  10. function genTheme
  11. {
  12. prefix=$1
  13. base=$2
  14. # Обычные фишки.
  15. for i in {1..34}
  16. do
  17. gen $base $i ${prefix}/$i.png
  18. done
  19. # Особенные фишки.
  20. gen $base "А" ${prefix}/35.png
  21. gen $base "Б" ${prefix}/36.png
  22. gen $base "В" ${prefix}/37.png
  23. gen $base "Г" ${prefix}/38.png
  24. gen $base ":)" ${prefix}/39.png
  25. gen $base ":(" ${prefix}/40.png
  26. gen $base ":|" ${prefix}/41.png
  27. gen $base ":O" ${prefix}/42.png
  28. }
  29. genTheme 0 основа.нейтраль.png
  30. genTheme 1 основа.выбор.png