Created
August 31, 2012 19:49
-
-
Save khakimov/3558086 to your computer and use it in GitHub Desktop.
Matrix Effect in you terminal
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
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
Thanks, @khakimov. Just in time for #TheMatrix4 #TheMatrixResurrections .
https://www.instagram.com/p/CTCXoCbJvJ4/?utm_source=ig_web_copy_link
memory killer...
better use this https://sharadchhetri.com/ubuntu-linux-get-matrix-effect-terminal/
or on macOS -> brew install cmatrix
Made fork which erases the columns when its full.
https://github.com/jaagut123/bash_matrix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Love it its awesome