Last active
March 26, 2021 13:17
-
-
Save StanGirard/b8185cd271d7bd0031bc76008850a60e to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
a=(22 28 34 40 46 47 48 49 );c=0;w=0;t=0;while :;do printf "\e[0;0H";while [[ $t -le $LINES ]];do for i in $(seq -s' ' 0 ${#a[*]});do v=${a[$(((i+w+c-1)%(${#a[*]}+1)))]};printf "\e[48;5;${v}m\n";t=$[t+1];done;w=$[w+1];done;t=0;w=0;c=$[c+1];sleep 0.06;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment