makespinner.sh raw

   1  #!/usr/bin/env bash
   2  #
   3  # Copyright (c) 2014-present The Bitcoin Core developers
   4  # Distributed under the MIT software license, see the accompanying
   5  # file COPYING or http://www.opensource.org/licenses/mit-license.php.
   6  
   7  export LC_ALL=C
   8  FRAMEDIR=$(dirname "$0")
   9  for i in {0..35}
  10  do
  11      frame=$(printf "%03d" "$i")
  12      angle=$((i * 10))
  13      convert "${FRAMEDIR}/../src/spinner.png" -background "rgba(0,0,0,0.0)" -distort SRT $angle "${FRAMEDIR}/spinner-${frame}.png"
  14  done
  15