User Tools

Site Tools


ascii_art

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
ascii_art [2023/03/25 12:21] – [Step 1. Read your image and print its height and width in pixels] frchrisascii_art [2023/03/25 14:10] – [Step 2. Load your image’s pixel data into a 2-dimensional array] frchris
Line 126: Line 126:
     try     try
     {     {
-      // the line that reads the image file 
       this.fileName = fileName;       this.fileName = fileName;
       image = ImageIO.read(new File(fileName));       image = ImageIO.read(new File(fileName));
Line 185: Line 184:
 } }
 </code> </code>
 + You can see what your new 2D Array of Color looks like with 
 +
 ==== Step 3. Convert the RGB tuples of your pixels into single brightness numbers  ==== ==== Step 3. Convert the RGB tuples of your pixels into single brightness numbers  ====
 ==== Step 4. Convert brightness numbers to ASCII characters  ==== ==== Step 4. Convert brightness numbers to ASCII characters  ====
ascii_art.txt · Last modified: 2023/03/27 10:46 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki