Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ASCii Artists
- They Program Things In Python as text art.
- For example:
- print('''
- _____
- |{} {}|
- | Z |
- | === |
- -------
- ''')
- Face ^
- Also you can add colors like so:
- (code)
- # change color in the python.exe console display (Windows)
- # color is a two digit hexadecimal number
- # the first digit is the background
- # the second digit is the foreground (text)
- # 0=black 1=blue 2=green ... to E=yellow F=white
- import os
- os.system("color F2") # green(2) text on white(F) background
- (code)
- NOTE: This method of colors are only known to work on Windows
- Further color codes here: http://wiki.vg/File:Colors.png
- Also, they can make animations.
- How? You say.
- (code)
- import time
- import os
- def cls():
- os.system(['clear','cls'][os.name == 'nt'])
- # Also is very useful for other things, it clears the console screen in windows for Python.
- # Note: I believe this might be Windows only as well, if it doesn't work, please Google the Mac & Linux ver.
- print('O')
- time.sleep(0.125)
- # 8 Frames Per Second, because 1 = a seconds, and .125*8 = 1
- cls()
- # Clears the screen, as defined above.
- print(' o')
- time.sleep(0.125)
- cls()
- print(' O')
- time.sleep(0.125)
- cls()
- print(' o')
- time.sleep(0.125)
- cls()
- print(' O')
- time.sleep(0.125)
- cls()
- print(' o')
- time.sleep(0.125)
- cls()
- print(' O')
- time.sleep(0.125)
- cls()
- print(' o')
- time.sleep(0.125)
- cls()
- print(' O')
- time.sleep(0.125)
- cls()
- print(' o')
- time.sleep(0.125)
- cls()
- print(' O')
- time.sleep(0.125)
- cls()
- print(' o')
- time.sleep(0.125)
- cls()
- print(' O')
- time.sleep(0.125)
- cls()
- print(' *')
- time.sleep(0.125)
- cls()
- print(' #')
- time.sleep(0.125)
- cls()
- print(' 0')
- time.sleep(0.125)
- cls()
- (code)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement