Last active
August 29, 2015 14:21
-
-
Save marcioAlmada/590d50c67a3be3ccd798 to your computer and use it in GitHub Desktop.
colors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
palette () | |
{ | |
echo -en "\n + "; | |
for i in {0..35}; | |
do | |
printf "%2b " $i; | |
done; | |
printf "\n\n %3b " 0; | |
for i in {0..15}; | |
do | |
echo -en "\033[48;5;${i}m \033[m "; | |
done; | |
for i in {0..6}; | |
do | |
let "i = i*36 +16"; | |
printf "\n\n %3b " $i; | |
for j in {0..35}; | |
do | |
let "val = i+j"; | |
echo -en "\033[48;5;${val}m \033[m "; | |
done; | |
done; | |
echo -e "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment