Give it some ascii art sizzle

This commit is contained in:
David Heinemeier Hansson 2024-05-31 11:29:00 -07:00
parent a665f52e27
commit ea66d2c2ec
2 changed files with 29 additions and 1 deletions

28
ascii.sh Normal file
View File

@ -0,0 +1,28 @@
ascii_art='
________ __ ___.
\_____ \ _____ _____ | | ____ _\_ |__
/ | \ / \\__ \ | |/ / | \ __ \
/ | \ Y Y \/ __ \| <| | / \_\ \
\_______ /__|_| (____ /__|_ \____/|___ /
\/ \/ \/ \/ \/
'
# Define the color gradient (shades of cyan and blue)
colors=(
'\033[38;5;81m' # Cyan
'\033[38;5;75m' # Light Blue
'\033[38;5;69m' # Sky Blue
'\033[38;5;63m' # Dodger Blue
'\033[38;5;57m' # Deep Sky Blue
'\033[38;5;51m' # Cornflower Blue
'\033[38;5;45m' # Royal Blue
)
# Split the ASCII art into lines
IFS=$'\n' read -rd '' -a lines <<<"$ascii_art"
# Print each line with the corresponding color
for i in "${!lines[@]}"; do
color_index=$((i % ${#colors[@]}))
echo -e "${colors[color_index]}${lines[i]}"
done

View File

@ -1,4 +1,4 @@
echo -e "\e[32mINSTALLING OMAKUB\e[0m"
source ~/.local/share/omakub/ascii.sh
# Needed for all installers
sudo apt update -y