Closed bytesnail closed 5 years ago
@fdehau I don't know if there are some errors or deviations in my understanding and expression.
The crate is actually using all the available braille patterns. As shown there, bit masks are used to compute the offset from the blank braille pattern and thus find the correct unicode character to represent all the points within the cells. You wouldn't have the rendering result you get if it was not the case. Some of the artifacts seems to be caused by rounding errors on the floats. The discrete nature of braille patterns (there is always space between them) explains the relatively low overall brightness of the picture. I don't think you can achieve a better result using braille patterns.
@fdehau As noted above, we now use one of them to represent blank, and the other eight are used to render on canvas. To sum up, a cell can represent eight points, but a cell can have at most one renderable point at the same time.
This will cause some problems:
In summary, I hope that we can add more braille patterns for rendering, which should actually be all braille patterns between 0x2800--0x28FF.