Skip to content

Instantly share code, notes, and snippets.

@CrBoy
Created June 23, 2012 07:33
Show Gist options
  • Save CrBoy/2977387 to your computer and use it in GitHub Desktop.
Save CrBoy/2977387 to your computer and use it in GitHub Desktop.
Colored Tower with animation
import time
import os
for t in range(60)*100:
for i in range(1,10,2)+range(7,0,-2):
print ' '*t+'\033[1;5;3'+str(t%5+1)+';4'+str(t%5+1)+'m'+'*'*i+'\033[m'
time.sleep(0.1)
os.system('clear')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment