From 8b434598020372c3ffe20df1509926364d3e2f85 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 8 Sep 2015 06:02:17 +0200 Subject: [PATCH] New color script --- colors.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 colors.sh diff --git a/colors.sh b/colors.sh new file mode 100755 index 0000000..b2d7464 --- /dev/null +++ b/colors.sh @@ -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