Skip to content

Instantly share code, notes, and snippets.

@StanGirard
Last active March 26, 2021 13:17
Show Gist options
  • Save StanGirard/b8185cd271d7bd0031bc76008850a60e to your computer and use it in GitHub Desktop.
Save StanGirard/b8185cd271d7bd0031bc76008850a60e to your computer and use it in GitHub Desktop.
#!/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