Skip to content

Instantly share code, notes, and snippets.

@muse
Last active August 29, 2015 14:15
Show Gist options
  • Save muse/219113dfa51e7d8cd3bb to your computer and use it in GitHub Desktop.
Save muse/219113dfa51e7d8cd3bb to your computer and use it in GitHub Desktop.
Show different colorbars.
#!/bin/bash
# Made by 'Mirko van der Waal'
# Distributed under terms of the MIT license.
case "$1" in
1)
echo -e "
\033[0;30m██████ \033[1;30m██ \033[0;30m|\033[0m \033[0;31m██████ \033[1;31m██ \033[0;30m|\033[0m \033[0;32m██████ \033[1;32m██ \033[0;30m|\033[0m \033[0;33m██████ \033[1;33m██ \033[0;30m|\033[0m \033[0;34m██████ \033[1;34m██ \033[0;30m|\033[0m \033[0;35m██████ \033[1;35m██ \033[0;30m|\033[0m \033[0;36m██████ \033[1;36m██ \033[0;30m|\033[0m \033[0;37m██████ \033[1;37m██
\033[0;30m██ \033[1;30m██ \033[0;30m|\033[0m \033[0;31m██ \033[1;31m██ \033[0;30m|\033[0m \033[0;32m██ \033[1;32m██ \033[0;30m|\033[0m \033[0;33m██ \033[1;33m██ \033[0;30m|\033[0m \033[0;34m██ \033[1;34m██ \033[0;30m|\033[0m \033[0;35m██ \033[1;35m██ \033[0;30m|\033[0m \033[0;36m██ \033[1;36m██ \033[0;30m|\033[0m \033[0;37m██ \033[1;37m██
\033[0;30m██ \033[1;30m██████ \033[0;30m|\033[0m \033[0;31m██ \033[1;31m██████ \033[0;30m|\033[0m \033[0;32m██ \033[1;32m██████ \033[0;30m|\033[0m \033[0;33m██ \033[1;33m██████ \033[0;30m|\033[0m \033[0;34m██ \033[1;34m██████ \033[0;30m|\033[0m \033[0;35m██ \033[1;35m██████ \033[0;30m|\033[0m \033[0;36m██ \033[1;36m██████ \033[0;30m|\033[0m \033[0;37m██ \033[1;37m██████
";;
2)
echo -e "
\033[0;30m█████ \033[0;31m█ \033[0;32m█████ \033[0;33m█████ \033[0;34m█ █ \033[0;35m█████ \033[0;36m█████ \033[37m█████
\033[0;30m█ █ \033[0;31m█ \033[0;32m █ \033[0;33m █ \033[0;34m█ █ \033[0;35m█ \033[0;36m█ \033[37m █
\033[0;30m█ █ █ \033[0;31m█ \033[0;32m█████ \033[0;33m█████ \033[0;34m█████ \033[0;35m█████ \033[0;36m█████ \033[37m █
\033[1;30m█ █ \033[1;31m█ \033[1;32m█ \033[1;33m █ \033[1;34m █ \033[1;35m █ \033[1;36m█ █ \033[37m █
\033[1;30m█████ \033[1;31m█ \033[1;32m█████ \033[1;33m█████ \033[1;34m █ \033[1;35m█████ \033[1;36m█████ \033[37m █
";;
*)
echo -e "
\033[0;30m██ \033[0;31m██ \033[0;32m██ \033[0;33m██ \033[0;34m██ \033[0;35m██ \033[0;36m██ \033[0;37m██
\033[0;30m██ \033[0;31m██ \033[0;32m██ \033[0;33m██ \033[0;34m██ \033[0;35m██ \033[0;36m██ \033[0;37m██
\033[1;30m██ \033[1;31m██ \033[1;32m██ \033[1;33m██ \033[1;34m██ \033[1;35m██ \033[1;36m██ \033[1;37m██
\033[1;30m██ \033[1;31m██ \033[1;32m██ \033[1;33m██ \033[1;34m██ \033[1;35m██ \033[1;36m██ \033[1;37m██
\033[1;30m \033[1;31m \033[1;32m \033[1;33m \033[1;34m \033[1;35m \033[1;36m \033[1;37m
\033[1;30m██ \033[1;31m██ \033[1;32m██ \033[1;33m██ \033[1;34m██ \033[1;35m██ \033[1;36m██ \033[1;37m██
\033[1;30m██ \033[1;31m██ \033[1;32m██ \033[1;33m██ \033[1;34m██ \033[1;35m██ \033[1;36m██ \033[1;37m██
\033[1;30m██ \033[1;31m██ \033[1;32m██ \033[1;33m██ \033[1;34m██ \033[1;35m██ \033[1;36m██ \033[1;37m██
\033[1;30m██ \033[1;31m██ \033[1;32m██ \033[1;33m██ \033[1;34m██ \033[1;35m██ \033[1;36m██ \033[1;37m██
";;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment