-
Notifications
You must be signed in to change notification settings - Fork 0
/
PrismOS.sh
37 lines (33 loc) · 1.34 KB
/
PrismOS.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
colors=("196" "202" "208" "214" "220" "226" "190" "154" "118" "82" "46" "51" "45" "21" "93" "201" "200" "198")
logo=(" :=**#*+=-. " \
" =%@@%##%%%@@@%*=. " \
" .+@@@@*###%%#%%%@@@@+-:-:. " \
" .%@@@@+::#%@@%%@@@@@@@@@%%%#+-. " \
" =@@@@@++*%@@@@@@@@@%%%%%%%%%%*+." \
" ++*%@@@@@@@@+. =***##**=---::. " \
" .++++%@%%%%+. ..:=+= " \
" -+++++%%%#*=:::...:=-. " \
" -+++++++##**++==-=*#* " \
" :++=========+++++++++*#= " \
" :%*==============-:. :-+= " \
" .#%*++======--::... .:-- " \
" #%#++++=-::........ .:-. " \
" *%%*++=--:......... : " \
" +@%#=-------:...... ..:= " \
" .#@@%=----------:... ...::::--++ " \
" *@@@@+==========--:...::::::::----=+= " \
" @@@@@+============++-:::::::-------+*= " \
":@@@@@#==========+++++=-:::---------+## " \
"=@@@@@@========++++++++=::----------=%%: ")
rows=${#logo[@]}
cols=${#logo[0]}
for ((i = 0; i < rows; i++)); do
for ((j = 0; j < cols; j++)); do
char="${logo[$i]:$j:1}"
color_index=$((i + j))
color="${colors[(color_index) % ${#colors[@]}]}"
echo -ne "\e[38;5;${color}m${char}"
done
echo -e "\e[0m"
done