Skip to content

Instantly share code, notes, and snippets.

@kuwa72
Last active August 17, 2017 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuwa72/fa59bccb65fa6ba285cb2209e9beffa3 to your computer and use it in GitHub Desktop.
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
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