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:44] – frchris | ascii_art [2023/03/24 11:04] – [Step 0. Choose an image] frchris | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ASCII Art ====== | ====== ASCII Art ====== | ||
+ | < | ||
$$$$$$$$ | $$$$$$$$ | ||
| | ||
Line 32: | Line 32: | ||
" | " | ||
"""" | """" | ||
+ | </ | ||
+ | ==== 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 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:// | + | [[https:// |
ascii_art.txt · Last modified: 2023/03/27 10:46 by frchris