Last active
June 29, 2021 22:07
-
-
Save actionless/7230288 to your computer and use it in GitHub Desktop.
unowns ansi script
This file contains 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
#!/bin/env python | |
# -*- coding: UTF-8 -*- | |
__author__ = 'actionless' | |
import random | |
unowns = [[ | |
' ▀█▀▀▀█▀ ', | |
' ▄▀▀▀▄ ', | |
' ▀▄ ▀ ▄▀ ', | |
' ▀█▀ ', | |
' ▄█▄▄▄▄ ', | |
], [ | |
' █▄ █ ', | |
' █ ▀▄▀▀▀▄ █ ', | |
' █ ▀▄ ▀ ▄▀ █ ', | |
' █ ▀▀▀ ▀▄█ ', | |
' ▀ ▀ ', | |
], [ | |
' ▀▀▀█▀▀▀ ', | |
' ▄▀▀▀▄ ', | |
' ▀▄ ▀ ▄▀ ', | |
' ▀▀▀ ', | |
' ', | |
], [ | |
' ▀▄ ▄▀ ', | |
' ▀▄▀▀▀▄▀ ', | |
' ▀▄ ▀ ▄▀ ', | |
' ▄▀ ▀▀▀ ▀▄ ', | |
' ▀ ▀ ', | |
], [ | |
' █▀▀▄ ', | |
' ▄▀▀▀▄ ▀▄ ', | |
' ▀▄ ▀ ▄▀ █ ', | |
' ▀▀▀ ▄▀ ', | |
' ▀▀▀ ', | |
], [ | |
' ▀▄ ▄▀ ', | |
' ▄▀▀▀▄ ', | |
' ▀▄ ▀ ▄▀ ', | |
' ▀█▀ ', | |
' ▄▀▄ ', | |
]] | |
for mode in ['normal', 'bold']: | |
random.shuffle(unowns) | |
if mode == 'bold': | |
print("\033[1m") | |
print( | |
'\n'.join([ | |
''.join([ | |
"\033[03{n}m{string}".format( | |
n=color_number + 1, | |
string=unowns[color_number][line_number] | |
) | |
for color_number in range(6)]) | |
for line_number in range(5)]) | |
) | |
# reset font: | |
print("\033[0m") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment