Skip to content

Instantly share code, notes, and snippets.

@slugbyte
Created January 16, 2019 07:04
Show Gist options
  • Save slugbyte/e7b970097214467a46b107240af16955 to your computer and use it in GitHub Desktop.
Save slugbyte/e7b970097214467a46b107240af16955 to your computer and use it in GitHub Desktop.
for x in {0..15};do
x=$(( x * 16 ))
for y in {0..16};do
color=$(( x + y ))
echo -n $(tput setab $(( $color ))) $(tput setaf 15)
printf " %3g " $color
echo -n $(tput setab 0)
done;
echo ""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment