Last active
June 17, 2018 16:53
-
-
Save bitmvr/ab0d7d24a3b0ed61e7d85ddd7b4ba0c7 to your computer and use it in GitHub Desktop.
A simple pride flag written in Bash.
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
#!/usr/bin/env bash | |
# Requires terminal capable of 265 color | |
line=$(printf ' %.0s' {1..50}) | |
paintBucket=( '196' '214' '226' '28' '27' '90' ) | |
echo "" | |
for paint in "${paintBucket[@]}"; do | |
swipe=1 | |
while [ $swipe -le 2 ]; do | |
printf "\\033[48;5;${paint}m${line}\\033[0m\r\n" | |
((swipe++)) | |
done | |
done | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment