Research portable Memory 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.

12 lines
183B

  1. IMG=$1
  2. CELL=25
  3. DX=$6
  4. DY=$7
  5. DW=$8
  6. DH=$9
  7. X=$(($2 * $CELL + $DX))
  8. Y=$(($3 * $CELL + $DY))
  9. W=$(($4 * $CELL + $DW))
  10. H=$(($5 * $CELL + $DH))
  11. magick $IMG -crop ${W}x${H}+${X}+${Y} crop.$IMG