Add support for block printing using more characters.#62
Add support for block printing using more characters.#62veggiebob wants to merge 7 commits intoatanunq:masterfrom
Conversation
|
Wow, thank you so much for the PR! I am happy to work on it and eventually merge as printing does look significantly better. Though, can you please describe on a high level how the new Traits and color math functions work together? I am having a hard time understanding the approach |
|
Sorry, I don't know why I didn't see this earlier. Certainly! I have no problem adding documentation to everything as well. A "Masker" has a method that samples one cell (by row, column) in the grid and tells whether it is black or white (bool). The rendering process looks like this:
Due to this repetitive process of mask selection, I'm sure that it can be sped up, either by improving the algorithm or just parallelizing all of it. |
Started to add support for additional block characters in unicode, including:
▁▂▃▄▅▆▇▉▊▋▌▍▎▏▖▗▘▚▝🭇🭈🭉🭊🭋🭆🭑🭀🬿🬾🬽🬼🭢🭣🭤🭥🭦🭧🭜🭛🭚🭙🭘🭗and their inversions.
This PR needs a lot of work, and I don't even know if it's within the scope of the project, but I saw some interest for it in #22 so @rosekunkel here you go!
Current issues:
The current structure could easily accomodate the sextants in #22 which I just found out about. The block characters I have been using are from this repo.


An appropriate option has been added to
Config:sub_blocks: boolwhich toggles between regular block printing, and this block printing, which uses the additional characters.It also properly acknowledges the transparency modes.