Skip to content

Instantly share code, notes, and snippets.

@DonSchado
Last active April 20, 2018 06:19
Show Gist options
  • Save DonSchado/ec35f0bcb4bafcbdd2df0abed0733fe2 to your computer and use it in GitHub Desktop.
Save DonSchado/ec35f0bcb4bafcbdd2df0abed0733fe2 to your computer and use it in GitHub Desktop.
Fancy Ruby
c=[' ',?█].cycle;w="173322172322\n2322232223221322\n23222322262322\n263322232225\n23123322232233\n23222322232233\n2322353643".chars.reduce([]){|r,n|n==$/?r<<n:r<<c.next*n.to_i;r}.join.split($/).map{|c|c.chars.map{|c|c*2}.join<<$/}.map{|r|r*2}.join;loop{$><<"\e[2J\e[1;1H"<<w.chars.map{|t|"\e[38;5;#{rand(230)}m#{t}"}*'';sleep 1}
@DonSchado
Copy link
Author

screen shot 2018-04-16 at 14 46 51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment