ascii_art
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ascii_art [2023/03/24 10:53] – frchris | ascii_art [2023/03/24 11:02] – [Step 0. Choose an image] frchris | ||
---|---|---|---|
Line 34: | Line 34: | ||
</ | </ | ||
==== Step 0. Choose an image ==== | ==== Step 0. Choose an image ==== | ||
+ | |||
+ | Choose the first image that you want to convert into ASCII art. It’s good to start with an image around 640x480. | ||
==== Step 1. Read your image and print its height and width in pixels ==== | ==== Step 1. Read your image and print its height and width in pixels ==== | ||
- | ==== Step 2. 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. Read your image and print its height and width in pixels ==== | + | ==== Step 3. Convert the RGB tuples of your pixels |
- | ==== Step 4. Read your image and print its height and width in pixels | + | ==== Step 4. Convert brightness numbers to ASCII characters |
+ | ==== Step 5. What if it looks your image looks squashed? | ||
[[https:// | [[https:// |
ascii_art.txt · Last modified: 2023/03/27 10:46 by frchris