Skip to content

Instantly share code, notes, and snippets.

@theY4Kman
Last active October 25, 2022 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theY4Kman/3ad83eacb5bb8e97ec68681ab7ac0185 to your computer and use it in GitHub Desktop.
Save theY4Kman/3ad83eacb5bb8e97ec68681ab7ac0185 to your computer and use it in GitHub Desktop.
@task
def perchy(c):
"""Perchy Print"""
perchy = '''\
*:::
*::::::
*::::::::::
*:::::::::::::
*:::::::::::::::
*::::::::::::::::::
*::::::::::::*:::::::::+++++++++++++
*::::::::::::*:::+++++++++++++++++++*
*::::::::::::*+++++++ ++**===
*:::::::::++++++ ... **=...==
*:::::++++++ @@@@@ **===:::===
**:++++++ @@@@@@@ **===========
:::++++++ @@@@@ *=============
:::::++++++ ^^ **===============
:::::::::++++++ **=================
*:::::::::+++++++ *===================
**::::::+++++++ *====================
***::++++++++ *+====================
**+++++++++ *::+==================
++++++++++ *:::::*================
++++++++++++- *:::::::::===::: *===
++++++++++++++*::::::::::::: *
+++++++++++++ :::::::
+++++++++++
+++++++++
+++++++
++++
*+
'''.rstrip()
colors = '''\
CCCC
CCCCCCC
CCCCCCCCCCC
CCCCCCCCCCCCCC
CCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCC
FFFFFFFFFFFFFCCCCCCCCCCGGGGGGGGGGGGG
FFFFFFFFFFFFFCCCCGGGGGGGGGGGGGGGGGGGR
FFFFFFFFFFFFFCGGGGGGG GGRRRRR
FFFFFFFFFFGGGGGG ... RRRrrrRR
FFFFFFGGGGGG @@@@@ RRRRRrrrRRR
FFFGGGGGG @@@@@@@ RRRRRRRRRRRRR
PPPGGGGGG @@@@@ RRRRRRRRRRRRRR
PPPPPGGGGGG ^^ RRRRRRRRRRRRRRRRR
PPPPPPPPPGGGGGG RRRRRRRRRRRRRRRRRRR
PPPPPPPPPPGGGGGGG RRRRRRRRRRRRRRRRRRRR
PPPPPPPPGGGGGGG RRRRRRRRRRRRRRRRRRRRR
PPPPPGGGGGGGG rRRRRRRRRRRRRRRRRRRRRR
PPGGGGGGGGG rrrRRRRRRRRRRRRRRRRRRR
GGGGGGGGGG rrrrrrRRRRRRRRRRRRRRRRR
GGGGGGGGGGGGG rrrrrrrrrrRRRrrr RRRR
GGGGGGGGGGGGGGrrrrrrrrrrrrrr R
GGGGGGGGGGGGG rrrrrrr
GGGGGGGGGGG
GGGGGGGGG
GGGGGGG
GGGG
GG
'''.rstrip()
color_map = {
'C': Fore256.CYAN1,
'F': Fore256.LIGHTSTEELBLUE,
'P': Fore256.DARKMAGENTA_1,
'G': Fore256.CHARTREUSE2_1,
'r': Fore256.LIGHTCORAL,
'R': Fore256.RED1,
}
print()
for char, color_code in zip(perchy, colors):
if color_code in color_map:
color = color_map[color_code]
char = color(char)
print(char, end='')
print(Style.RESET_ALL)
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment