43 lines
949 B
Bash
Executable File
43 lines
949 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This needs ImageMagick for the 'convert' and 'identify' tools.
|
|
#
|
|
|
|
LOGO=kescher.png
|
|
LOGO_WIDTH=$(identify $LOGO | cut -d " " -f 3 | cut -d x -f 1)
|
|
LOGO_HEIGHT=$(identify $LOGO | cut -d " " -f 3 | cut -d x -f 2)
|
|
|
|
THROBBER=spinner
|
|
THROBBER_WIDTH=200
|
|
THROBBER_HEIGHT=200
|
|
THROBBER_BLOBS=$(for f in `find . -iname "*.rgb" | sort -n`; do echo "--blob $f"; done)
|
|
|
|
convert -alpha remove \
|
|
-background "#000000" \
|
|
$LOGO \
|
|
logo.rgb
|
|
|
|
# Let's put Tux in the center of an orange background.
|
|
./bootsplash-packer \
|
|
--bg_red 0x00 \
|
|
--bg_green 0x00 \
|
|
--bg_blue 0x00 \
|
|
--frame_ms 16 \
|
|
--picture \
|
|
--pic_width $LOGO_WIDTH \
|
|
--pic_height $LOGO_HEIGHT \
|
|
--pic_position 0x01 \
|
|
--pic_position_offset 100 \
|
|
--blob logo.rgb \
|
|
--picture \
|
|
--pic_width $THROBBER_WIDTH \
|
|
--pic_height $THROBBER_HEIGHT \
|
|
--pic_position 0x05 \
|
|
--pic_position_offset 300 \
|
|
--pic_anim_type 1 \
|
|
--pic_anim_loop 0 \
|
|
$THROBBER_BLOBS \
|
|
bootsplash-kescher
|
|
|
|
rm *.rgb
|