ascii_art
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
ascii_art [2023/03/25 14:27] – [Step 3. Convert the RGB tuples of your pixels into single brightness numbers] frchris | ascii_art [2023/03/25 14:30] – [Step 3. Convert the RGB tuples of your pixels into single brightness numbers] frchris | ||
---|---|---|---|
Line 202: | Line 202: | ||
==== 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 | ||
- | Now that you have a 2D Array of '' | + | Now that you have a 2D Array of '' |
+ | - Average: average the R, G and B values - '' | ||
+ | - Lightness: average the maximum and minimum values out of R, G and B - '' | ||
+ | - Luminosity: take a weighted average of the R, G and B values to account for human perception - '' | ||
+ | - See [[https:// | ||
==== Step 4. Convert brightness numbers to ASCII characters | ==== Step 4. Convert brightness numbers to ASCII characters | ||
==== Step 5. What if it looks your image looks squashed? ==== | ==== Step 5. What if it looks your image looks squashed? ==== |
ascii_art.txt · Last modified: 2023/03/27 10:46 by frchris