5/20/2023 0 Comments Contessa in bubble letters font![]() This function print ASCII text in normal mode (return None) and raise artError in exception. > Art = text2art ( "art" ) # Return ASCII text (default font) and default chr_ignore=True > print ( Art ) _ _ _ _ _ | |_ / _` || '_|| _| | (_| || | | |_ \_,_||_| \_| > Art = text2art ( "art", font = 'block', chr_ignore = True ) # Return ASCII text with block font > print ( Art ). This function return ASCII text as str in normal mode and raise artError in exception. ⚠️ From Version 3.3 Non-ASCII fonts added (These fonts are not compatible with some environments) 1. ![]() ⚠️ Some fonts don't support all characters Randart function is added in Version 2.2 as art("random") shortcut. ´¯)->test> aprint ( "random" ) # random 1-line art mode '(っ◕‿◕)っ ' > aprint ( "rand" ) # random 1-line art mode 't(-_-t) ' > aprint ( "woman", number = "22", text = "" ) # raise artError Traceback (most recent call last).This function print 1-line art in normal mode (return None) and raise artError in exception. ´¯)->test> art ( "random" ) # random 1-line art mode '(っ◕‿◕)っ ' > art ( "rand" ) # random 1-line art mode 't(-_-t) ' > art ( 22, number = 1, text = "" ) # raise artError Traceback (most recent call last).> from art import * > art_1 = art ( "coffee" ) # return art as str in normal mode > print ( art_1 ) c > art_2 = art ( "woman", number = 2 ) # return multiple art as str > print ( art_2 ) ▓⚗_⚗▓ ▓⚗_⚗▓ > art_3 = art ( "love_you", number = 1, text = "test" ) # 2-part art > print ( art_3 ) »-(¯` This function return 1-line art as str in normal mode and raise artError in exception. ⚠️ Some environments don't support all 1-Line arts 1.
0 Comments
Leave a Reply. |