New color script

This commit is contained in:
madmaurice 2015-09-08 06:02:17 +02:00
parent 86a1e8aa89
commit 8b43459802
1 changed files with 17 additions and 0 deletions

17
colors.sh Executable file
View 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