Drawille: Pixel graphics in terminal with Unicode braille characters
github.com
github.com
So unless you can appreciate your pixel graphics one printed line at a time, it's unlikely that any blind person will be able to get any benefit from this application.
TBH I just did a quick search for braille displays to validate my assumption, and when the first few results came up looking roughly like the one-line display that I expected, I wrote this comment. I'm not an expert in this kind of thing though.
https://www.wikiwand.com/en/Refreshable_braille_display
A full page braille display with 1,000 cells (25 lines of 40 cells) was
developed in 2015 by the Tactisplay Corp.[3] With total 12,000 pixels
configured in 120*100, it can show any BANA compatible braille
graphic page in 8 seconds. This video shows operation of the device.
http://www.tactisplay.com/product/tactisplay-tablehttps://en.wikipedia.org/wiki/Refreshable_braille_display
That site is proprietary, adds trackers, etc. -1
Even if you were to print those on a braille display, it would be meaningless letters over and over.
Not sure if that's what Sir_Cmpwn meant, but that was my first interpretation of the question.
You are telling me that a blind person will be able to remember the entire line of gibberish as the geometric shape gets "printed" line by line and then remember those at 30 frames per seconds?
Come on, it's not about being too stupid to understand. It's about this technology having nothing at all to do with the blind except for hijacking useful Unicode characters.
https://github.com/fenwick67/term-px
Demo / image utility here:
And this library enables things like video and X11 using Sixel, plus it has a list of terminals which support Sixels in the README: https://github.com/saitoha/libsixel
Drawille works in MacTerm too; I ran some of the example programs just now. Neat, especially the rotating cube. :)
It could be used to make pages like e.g. https://al.robotfuzz.com/~al/teletext/c4/1995-08-26-0046.0/4...
This is a great idea and would be nice even just as an art project but unfortunately I can't do much personally useful with it.
The choice is 100% up to the author and I respect how they avoid losing control of their IP. It is interesting to see the uptake and I wonder how many project using this tool are in violation of the license.
- https://github.com/chjj/blessed
- https://github.com/yaronn/blessed-contrib
- https://github.com/Yomguithereal/react-blessed
(edited for syntax and also to clarify I am not affiliated with the above, just a fan)The resulting pixel resolution is a bit screwy, especially if you use a tall, thin font like the one I tend to. Too many pixels horizontally, too few vertically. The upper block/lower block characters might be better in terms of aspect ratio, but then the overall resolution is made even worse...
The 2x3 Braille grid makes a lot more sense.
Some cool images: https://github.com/saitoha/libsixel & https://github.com/saitoha/PySixel
I wonder if unicode characters could be used on top of libcaca for an even more accurate rendering.
Also you'd either need a monospace Unicode font (which I don't imagine has anywhere near 100% glyph support) or incorporate spacing and kerning rules...
The first part could be something like shapecatcher.com where you select the top N plausible candidates, then on the final part you select the best one for the case at hand. (well at least that's how I would try to implement that first)
Anyway yes, it would be great!!