my first color ascii

Ok,  I spent way to much time on this.  But I had to see it through. GRAPH paper.  I am going to get more, cause it is so crazy without it.

here is a picture,   The code will be below:

and the code:


import sys

def colorAscii():

text_red = '\x1b[1;31;40m'
stop_color = '\x1b[0m'
text_blue = '\x1b[1;34;40m'
text_green = '\x1b[1;32;40m'
text_purple = '\x1b[1;35;40m'
text_lightblue = '\x1b[1;36;40m'
text_white = '\x1b[1;37;40m'
text_lightGreen = '\x1b[2;32;40m'


#----------- Color pallete for my leaf -----------------------
fill = '\x1b[3;37;44m'
stop_color = '\x1b[0m'
outline = '\x1b[3;30;42m'
edgebright = '\x1b[5;31;42m'
edgedark = '\x1b[3;32;42m'
orange = '\x1b[1;37;42m'
innerred = '\x1b[2;33;41m'
# make them one char ===
a = f"{fill}~{stop_color}"
b = f"{outline}+{stop_color}"
c = f"{edgebright}o{stop_color}"
d = f"{edgedark}>{stop_color}"
e = f"{orange}>{stop_color}"
f = f"{innerred}*{stop_color}"

print(f"\t\t" + f"{a}"*12+f"{b}"*3+f"{a}"*12)
print(f"\t\t" + f"{a}"*9+f"{b}"*3+f"{c}"+f"{b}"+f"{c}"+f"{b}"*3+f"{a}"*9)
print(f"\t\t" + f"{a}"*6+f"{b}"*3+f"{c}"*4+f"{b}"+f"{c}"*4+f"{b}"*3+f"{a}"*6)
print(f"\t\t" + f"{a}"*6+f"{b}"+f"{c}"*4+f"{d}"*2+f"{b}"+f"{d}"*2+f"{c}"*4+f"{b}"+f"{a}"*6)
print(f"\t\t" + f"{b}"*4+f"{a}"*2+f"{b}"+f"{c}"+f"{d}"+f"{b}"+f"{d}"*3+f"{b}"+f"{d}"*3+f"{b}"+f"{d}"+f"{c}"+f"{b}"+f"{a}"*2+f"{b}"*4)
print(f"\t\t{b}{c}{c}{c}{b}{a}{b}{c}{d}{d}{b}{d}{e}{b}{e}{d}{b}{d}{d}{c}{b}{a}{b}{c}{c}{c}{b}")
print(f"\t\t{b}{c}{d}{c}{c}{b}{c}{c}{d}{d}{e}{b}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
print(f"\t\t"+f"{a}"*13+f"{b}"+f"{a}"*13)
print(f"\t\t"+f"{a}"*13+f"{b}"+f"{a}"*13)


colorAscii()










Comments

Popular posts from this blog

playing with color in powershell python

JavaScript Ascii animation with while loops and console.log

playing with trigonometry sin in pygame