Post

ASCII Art

Let's use ASCII Art.

ASCII Art

If you’ve ever seen a picture drawn entirely with text characters like @, #, and *, you’ve encountered ASCII Art. This clever and nostalgic technique turns plain characters into visual art and it’s been a part of the programming world for decades.

What is ASCII Art?

ASCII stands for American Standard Code for Information Interchange. It’s the character encoding standard that computers use to represent text.

ASCII Art is a form of drawing using these standard characters. Before computers had advanced graphics capabilities, developers and artists used ASCII art to represent images, logos, and even animations in a purely text-based environment.

Today, it’s still used for stylistic purposes, CLI branding, developer culture, and lightweight visual expression.

How to Create ASCII Art

  • You can handcraft ASCII art, but there are also tools that convert images or text into ASCII automatically. https://patorjk.com/software/taag/

ASCIIArt ASCII Art(Source: patorjk.com)

  • Alternatively, you can use figlet to generate ASCII art from text.
1
2
3
4
5
6
pip install pyfiglet

from pyfiglet import figlet_format

print(figlet_format("Hello, DS2Man!", font="slant"))
print(figlet_format("Hello, DS2Man!", font="block"))
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
__  __     ____           ____  ________   __  ___            __
   / / / /__  / / /___       / __ \/ ___/__ \ /  |/  /___ _____  / /
  / /_/ / _ \/ / / __ \     / / / /\__ \__/ // /|_/ / __ `/ __ \/ / 
 / __  /  __/ / / /_/ /    / /_/ /___/ / __// /  / / /_/ / / / /_/  
/_/ /_/\___/_/_/\____( )  /_____//____/____/_/  /_/\__,_/_/ /_(_)   
                     |/                                             

                                          
_|    _|            _|  _|                
_|    _|    _|_|    _|  _|    _|_|        
_|_|_|_|  _|_|_|_|  _|  _|  _|    _|      
_|    _|  _|        _|  _|  _|    _|      
_|    _|    _|_|_|  _|  _|    _|_|    _|  
                                    _|    
                                          
                                                                  
_|_|_|      _|_|_|    _|_|    _|      _|                      _|  
_|    _|  _|        _|    _|  _|_|  _|_|    _|_|_|  _|_|_|    _|  
_|    _|    _|_|        _|    _|  _|  _|  _|    _|  _|    _|  _|  
_|    _|        _|    _|      _|      _|  _|    _|  _|    _|      
_|_|_|    _|_|_|    _|_|_|_|  _|      _|    _|_|_|  _|    _|  _|
This post is licensed under CC BY 4.0 by the author.