walloftext/colors.sh
2015-09-08 06:02:17 +02:00

17 lines
307 B
Bash
Executable file

#!/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