feat: modify embeded string

This commit is contained in:
2023-08-05 14:55:23 +08:00
parent 2c391566db
commit c8b9360351
+30 -3
View File
@@ -66,8 +66,17 @@ class CMatrixAvatar(object):
/ _____/ \ / \______ \\ / _____/ \ / \______ \\
/ \ __\ \/\/ /| | _/ / \ __\ \/\/ /| | _/
\ \_\ \ / | | \\ \ \_\ \ / | | \\
\______ /\__/\ / |______ / \______ /\__/\ / /_______ /
\/ \/ \/ """ \/ \/ \/ """
# string = r"""
"""
________ __ ____________
/ _____// \ / \______ \
/ \ ___\ \/\/ / | | _/
\ \_\ \\ / | | \
\______ / \__/\ / /______ /
\/ \/ \/
"""
""" """
_____ _ _______ _____ _ _______
@@ -77,6 +86,24 @@ class CMatrixAvatar(object):
| |_\ \ /\ / |_/ / | |_\ \ /\ / |_/ /
\____/\/ \/\____/ \____/\/ \/\____/
""" """
"""
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██░▄▄░██░███░██░▄▄▀██
██░█▀▀██░█░█░██░▄▄▀██
██░▀▀▄██▄▀▄▀▄██░▀▀░██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀"""
"""
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░ ░░░░░ ░░░░░░░░ ░ ░░░░
▒▒ ▒▒▒▒ ▒▒▒ ▒▒▒▒▒▒▒▒ ▒ ▒▒ ▒▒
▒ ▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒ ▒▒▒ ▒ ▒▒▒ ▒
▓ ▓▓▓▓▓▓▓▓▓▓ ▓▓ ▓▓▓ ▓ ▓▓▓
▓ ▓▓▓ ▓ ▓ ▓ ▓ ▓ ▓▓▓▓
▓▓ ▓▓▓▓ ▓▓▓ ▓ ▓▓▓▓ ▓ ▓▓▓▓▓
███ █████ ████████ █ █ █
██████████████████████████████████████
"""
string = string[1:] string = string[1:]
else: else:
assert type(string) == type("Hello") assert type(string) == type("Hello")
@@ -265,8 +292,8 @@ if __name__ == "__main__":
cmatrix = CMatrixAvatar() cmatrix = CMatrixAvatar()
cmatrix.set_background_string() cmatrix.set_background_string()
cmatrix.set_embed_string() cmatrix.set_embed_string()
cmatrix.gen_cmatrix(43//3*2, 86//3*2) cmatrix.gen_cmatrix(43//1, 86//1)
cmatrix.show() # cmatrix.show()
# cmatrix.substitute_all() # cmatrix.substitute_all()
# cmatrix.centered_embed() # cmatrix.centered_embed()
cmatrix.substitute_all_with_embed() cmatrix.substitute_all_with_embed()