Created
August 27, 2015 22:53
-
-
Save jpetazzo/bde04c07137b9e122c07 to your computer and use it in GitHub Desktop.
Generate an ANSI bull.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from colorama import init, Fore, Back, Style | |
bull = [r""" | |
(___) | |
(o o)_____/ | |
@@ ` \ | |
\ ____, / | |
// // | |
^^ ^^ | |
"""] | |
init() | |
def colorize(chars, color): | |
for char in chars: | |
bull[0] = bull[0].replace( | |
char, color+char+Style.RESET_ALL) | |
colorize("o", Fore.RED) | |
colorize("()", Style.BRIGHT) | |
colorize("_/\\`,", Fore.YELLOW+Style.DIM) | |
colorize("@", Style.DIM+Fore.RED) | |
print(bull[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment