New color script
This commit is contained in:
parent
86a1e8aa89
commit
8b43459802
1 changed files with 17 additions and 0 deletions
17
colors.sh
Executable file
17
colors.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
clear
|
||||
|
||||
WIDTH=$(tput cols)
|
||||
HEIGHT=$(tput lines)
|
||||
NUMBARS=8
|
||||
BARWIDTH=$(expr $WIDTH / $NUMBARS)
|
||||
|
||||
for (( y = 0; y < $HEIGHT; y++ )); do
|
||||
for (( n = 0; n < $NUMBARS; n++ )); do
|
||||
for (( x = 0; x < $BARWIDTH; x++ )); do
|
||||
echo -en "\e[3"$n"m█"
|
||||
done
|
||||
done
|
||||
echo
|
||||
done
|
Loading…
Reference in a new issue