ASCII characters are not pixels: a deep dive into ASCII rendering
1–10 of 158 posts
Re: ASCII characters are not pixels: a deep dive into ASCII rendering
#2Re: ASCII characters are not pixels: a deep dive into ASCII rendering
#3Simply trying every character and considering their entire bitmap, and keeping the character that reduces the distance to the target gives better results, at the cost of more CPU.
This is a well known problem because early computers with monitors used to only be able to display characters.
At some point we were able to define custom character bitmap, but not enough custom characters to cover the entire screen, so the problem became more complex. Which new character do you create to reproduce an image optimally?
And separately we could choose the foreground/background color of individual characters, which opened up more possibilities.
Re: ASCII characters are not pixels: a deep dive into ASCII rendering
#4Bravo, beautiful article! The rest of this blog is at this same level of depth, worth a sub: https://alexharri.com/blog
Re: ASCII characters are not pixels: a deep dive into ASCII rendering
#5It's important to note that the approach described focuses on giving fast results, not the best results. Simply trying every character and considering their entire bitmap, and keeping the character that reduces the distance to the target gives better results, at the cost of more CPU. This is a well known problem because early computers with monitors used to only be able to display characters. At some point we were ab…
Re: ASCII characters are not pixels: a deep dive into ASCII rendering
#6Re: ASCII characters are not pixels: a deep dive into ASCII rendering
#7Re: ASCII characters are not pixels: a deep dive into ASCII rendering
#8It's important to note that the approach described focuses on giving fast results, not the best results. Simply trying every character and considering their entire bitmap, and keeping the character that reduces the distance to the target gives better results, at the cost of more CPU. This is a well known problem because early computers with monitors used to only be able to display characters. At some point we were ab…
Re: ASCII characters are not pixels: a deep dive into ASCII rendering
#9It's important to note that the approach described focuses on giving fast results, not the best results. Simply trying every character and considering their entire bitmap, and keeping the character that reduces the distance to the target gives better results, at the cost of more CPU. This is a well known problem because early computers with monitors used to only be able to display characters. At some point we were ab…
In practice isn’t a large HashMap best for lookup, based on compile-time or static constants describing the character-space?
Re: ASCII characters are not pixels: a deep dive into ASCII rendering
#10It's important to note that the approach described focuses on giving fast results, not the best results. Simply trying every character and considering their entire bitmap, and keeping the character that reduces the distance to the target gives better results, at the cost of more CPU. This is a well known problem because early computers with monitors used to only be able to display characters. At some point we were ab…
For example, limiting output to a small set of characters gives it a more uniform look which may be nicer. Then also there’s the “retro” effect of using certain characters over others.