Last active
August 17, 2017 05:32
-
-
Save kuwa72/fa59bccb65fa6ba285cb2209e9beffa3 to your computer and use it in GitHub Desktop.
Rendering fire on terminal(no noise), based on 炎上のさせ方講座(じゃがりきん) https://twitter.com/jagarikin/status/894452278463053824
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
x=$(gshuf -i 196-226 -r|head -n 20|xargs);for ((i=0;i<30;i++));do y=$x;x=$((echo $x|cycle|head -n 2;echo $x|cycle|tail -n 1;echo $y)|awk '{for(i=1;i<=NF;i++){a[i]+=$i}}END{for(x in a)printf int(a[x]/4)" ";print ""}');echo $x;done|awk '{for(i=1;i<=NF;i++){printf "\033[48;05;%dm%d",$i,$i};print"\033[m"}' | gtac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment