Skip to the content.

Heart test

Running

Transparent image of a heart

To generate ASCII art from an image, run the following command:

python3 main.py heart.png 10

The output is:


             Ñ-.::=           =.:.-Ñ             
           Ñ._______:       :_______:Ñ           
          +___:==-.___Ñ   Ñ___.---:___=          
         +++:      Ñ.._% %__.Ñ      :::+         
         __-         ::_Ñ__:         --_         
        --.           ..__:           ..-        
        __Ñ            ___            ÑÑ_        
       ÑÑ_             =.=             __Ñ       
       --.              Ñ              ..-       
       --:                             ::-       
       --:                             :::       
       --:                             ::-       
       %%.                             ..%       
        __                             __        
        ..=                           ==.        
        ==.                           ..=        
         __%                         %%_         
         --_                         __-         
          __-                       --_          
          #__Ñ                     Ñ__#          
           ::_                     __:           
            ...                   ...            
             __.                 .._             
              __:               ::_              
              Ñ__.             .._Ñ              
               Ñ__.           .._Ñ               
                 __.         .._                 
                  .._Ñ     Ñ__.                  
                   .._-   -__.                   
                    :::: ::::                    
                     =__.._=                     
                      Õ___#                      
                        -                        

The output file on heart.out.txt on Github.