Skip to content

Instantly share code, notes, and snippets.

@jpetazzo
Created August 27, 2015 22:53
Show Gist options
  • Save jpetazzo/bde04c07137b9e122c07 to your computer and use it in GitHub Desktop.
Save jpetazzo/bde04c07137b9e122c07 to your computer and use it in GitHub Desktop.
Generate an ANSI bull.
#!/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