Skip to content

Instantly share code, notes, and snippets.

@jacksonwillis
Created January 3, 2012 12:09
Show Gist options
  • Save jacksonwillis/1554696 to your computer and use it in GitHub Desktop.
Save jacksonwillis/1554696 to your computer and use it in GitHub Desktop.
PRETTY COLORS II
#n=0;loop{n+=1;41.upto(45){|i|print"\e[#{i}m #{" "*(Math.sin(n/20)+1)}"};sleep 0.001}
#n=0;loop{n+=1;41.upto(45){|i|print"\e[#{i}m #{" "if((Math.sin(n/20)+1)<0.2)}"}}
#loop{41.upto(45){|i|print"\e[#{i}m #{" "if rand<0.25}";sleep 0.001}}
loop{41.upto(45){|i|print"\e[#{i}m"+" "*((rand*2)+1)};sleep 0.001}
loop do
41.upto(45) do |i|
print "\e[#{i}m"
print " " * ((rand * 2) + 1)
end
sleep 0.001
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment