![]() ![]() ![]() to_terminal () # Does the same as this: my_art = from_image ( 'lion.jpg' ) my_art. These methods have parameters such as columns that allow you to change the appearance of the art piece.įor convenience, the module ascii_magic also exposes a collection of functions with the same name as the class methods mentioned above, which do exactly the same.Įxample: from ascii_magic import AsciiArt, from_image # This: my_art = AsciiArt. These objects have multiple methods, such as my_art.to_terminal(), that generate ASCII art pieces from the picture. This module's entire functionality is contained within the class AsciiArt, which has a collection class methods, such as om_image(), that return AsciiArt objects with pictures from different sources: files, URLs, the clipboard, etc. Quickstart from ascii_magic import AsciiArt my_art = AsciiArt. Complete rewrite, full OOP, no longer compatible with 1.x.Stable Diffusion support: from_stable_diffusion().Thanks to Colorama it's compatible with the Windows terminal.Ĭode based on ProfOak's Ascii Py. Python package that converts images into ASCII art for terminals and HTML.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |