ASCII 3D Renderer for JavaScript
github.com
github.com
I see what you did there
(without intending to do it)
It is still a cool shader that turns input into text, even if it doesn't have the ascii art vibe.
Note that e.g. PETSCII, while internally 8x8, would be displayed using non-square pixels[1] - also not resulting in square letters.
DOM manipulation is fast enough to allow text output into a PRE element as long as text color is not changed too often (each style change needs the affected chars wrapped into a SPAN).
I did quite a lot of printing on dot matrix printers as well.
private Shade = '·┼╬'; [1]
Would have expected something more sophisticated, where the shader also looks at subpixels, where it gets the best matching char for the shape and brightness.
Like rastapasta map renderer did with the braille block:
https://github.com/rastapasta/mapscii
https://news.ycombinator.com/item?id=39975887
---
https://github.com/kciter/ascii-3d-renderer.js/blob/1f1a8493... [1]
Shades and Box art chars where never part of any ASCII standard. https://en.wikipedia.org/wiki/Code_page_437
Technically no ASCII but that's just for purists https://en.wikipedia.org/wiki/ASCII_art#%22Block_ASCII%22_/_...
explanation with animations: https://www.a1k0n.net/2011/07/20/donut-math.html