User Tools

Site Tools


ascii_art

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
ascii_art [2023/03/18 13:44] – created frchrisascii_art [2023/03/24 11:04] – [Step 0. Choose an image] frchris
Line 1: Line 1:
 ====== ASCII Art ====== ====== ASCII Art ======
  
 +<code>
 +            $$$$$$$$              $$$$$$
 +           m$$$$$$$$$          m$"""" "$$m             
 +           $$$$$$$$$$         $" m$$$$m""$m           
 +          mm$$$$$$$$$$$$$$$"" $     "$$mm$$           
 +          m""        """$$$$$mm      "$$$$$           
 +      mmm$$m$$m$$mmmmm   """"$$$"    m$$$"            
 +    ""$m   $$$""""""$$$mm            $$$$m            
 +                      ""           mm$$$$           
 +     mm"                      mm$$$$$$$$$$$           
 +                          m$$$$""    ""$$$          
 +                          $$""       m "$$m         
 +    $                      """   mm$$$$$$$$$$         
 +    $                          m$$$$$""""$$$"         
 +      mm    mm               $$"       "$$          
 +     $ $"$$  $"$$                         "$""""      
 +      $"m"   "m$"                           m""""     
 +     m$ m"""                               "mmm""   
 +    $ mmmm                                   ""       
 + mmm$$""""""$$                                m""""$  
 +m$$"  mm$$$$$$$                                mm     
 +$$  $$$$$$$$$$$$         mmm                "$m "$m   
 +"$$$$$$$$$$$$$$$         m$m"                m     "  
 + ""$$$$$$$$$$$$"       m$$$$                 ""mm     
 +   $""$$$$$""         m$$$$                m mmm "    
 +   "             m$$$$$$            mm$mmmm  ""     
 +    ""mmm     mmm$$""$$$"            $$""  "        
 +         """""   "$mm$"            $$               
 +                m         m$"        $$               
 +                "$$$$$mm$""          ""               
 +                   """"                           
 +</code>
 +==== Step 0. Choose an image ====
  
-[[https://robertheaton.com/2018/06/12/programming-projects-for-advanced-beginners-ascii-art/|Source]]+Choose the first image that you want to convert into ASCII art. It’s good to start with an image around 640x480.  It can be in color, a photo, or a drawing.  Light pixels will be represented by small characters like a dot (.), which leave lots of the background exposed. On the other extreme, dense characters like $ are used to cover up the background. 
 +==== Step 1. Read your image and print its height and width in pixels ==== 
 +==== Step 2. Load your image’s pixel data into a 2-dimensional array ==== 
 +==== Step 3. Convert the RGB tuples of your pixels into single brightness numbers  ==== 
 +==== Step 4. Convert brightness numbers to ASCII characters  ==== 
 +==== Step 5. What if it looks your image looks squashed? ==== 
 + 
 + 
 +[[https://robertheaton.com/2018/06/12/programming-projects-for-advanced-beginners-ascii-art/|This is from RObert Heaton's Advanced Beginners Projects]]
ascii_art.txt · Last modified: 2023/03/27 10:46 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki