From c8b93603518378acba91dadd5fdffbca3b0fb471 Mon Sep 17 00:00:00 2001 From: gwbeip Date: Sat, 5 Aug 2023 14:55:23 +0800 Subject: [PATCH] feat: modify embeded string --- cmatrix_avatar.py | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/cmatrix_avatar.py b/cmatrix_avatar.py index 52d1e31..c187743 100644 --- a/cmatrix_avatar.py +++ b/cmatrix_avatar.py @@ -66,8 +66,17 @@ class CMatrixAvatar(object): / _____/ \ / \______ \\ / \ __\ \/\/ /| | _/ \ \_\ \ / | | \\ - \______ /\__/\ / |______ / + \______ /\__/\ / /_______ / \/ \/ \/ """ + # string = r""" + """ + ________ __ ____________ + / _____// \ / \______ \ +/ \ ___\ \/\/ / | | _/ +\ \_\ \\ / | | \ + \______ / \__/\ / /______ / + \/ \/ \/ +""" """ _____ _ _______ @@ -77,6 +86,24 @@ class CMatrixAvatar(object): | |_\ \ /\ / |_/ / \____/\/ \/\____/ """ + + """ +▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ +██░▄▄░██░███░██░▄▄▀██ +██░█▀▀██░█░█░██░▄▄▀██ +██░▀▀▄██▄▀▄▀▄██░▀▀░██ +▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀""" + """ +░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ +░░░░ ░░░░░ ░░░░░░░░ ░ ░░░░ +▒▒ ▒▒▒▒ ▒▒▒ ▒▒▒▒▒▒▒▒ ▒ ▒▒ ▒▒ +▒ ▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒ ▒▒▒ ▒ ▒▒▒ ▒ +▓ ▓▓▓▓▓▓▓▓▓▓ ▓▓ ▓▓▓ ▓ ▓▓▓ +▓ ▓▓▓ ▓ ▓ ▓ ▓ ▓ ▓▓▓▓ +▓▓ ▓▓▓▓ ▓▓▓ ▓ ▓▓▓▓ ▓ ▓▓▓▓▓ +███ █████ ████████ █ █ █ +██████████████████████████████████████ +""" string = string[1:] else: assert type(string) == type("Hello") @@ -265,8 +292,8 @@ if __name__ == "__main__": cmatrix = CMatrixAvatar() cmatrix.set_background_string() cmatrix.set_embed_string() - cmatrix.gen_cmatrix(43//3*2, 86//3*2) - cmatrix.show() + cmatrix.gen_cmatrix(43//1, 86//1) + # cmatrix.show() # cmatrix.substitute_all() # cmatrix.centered_embed() cmatrix.substitute_all_with_embed()