Files
emcomm-tools-os-community/logos/et-spinner/make-et-spinner.sh
T

38 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
#
# Author : Gaston Gonzalez
# Date : 5 September 2026
# Updated : 6 September 2026
# Purpose : Generate 36 PNG images for use as a spinner for Plymouth
#
# throbber-xxxx.png is the looping animation on startup
# animation-xxxx.png is the end frame animation
#
# For simplicity, 36 frames are generated for both using ImageMagick.
SIZE=64x64
SPINNER_PNG="et-${SIZE}-icon.png"
# This is step is no longer needed. I created a new version of the
# 512x512 icon with the "E" and "T" removed in GIMP.
#convert ../../overlay/usr/share/icons/emcomm-tools-icon-black-512.png \
# -transparent black et-512x512-icon.png
convert et-512x512-icon.png \
-resize ${SIZE} ${SPINNER_PNG}
for i in $(seq 0 35); do
angle=$((i * 10))
frame=$(printf "%04d" $((i + 1)))
convert ${SPINNER_PNG} \
-background none \
-rotate "${angle}" \
-gravity center \
-extent ${SIZE} \
"animation-${frame}.png"
# Make a copy for the throbber frame looping animation
cp "animation-${frame}.png" "throbber-${frame}.png"
done