3 ms·
I implemented this neat trick that gives 4x spatial and 2x color resolution using Unicode Block characters http://www.blitzcode.net/rust.shtml#term_gfx http://
by SirRockALot 10y ago
I implemented this neat trick that gives 4x spatial and 2x color resolution using Unicode Block characters
http://www.blitzcode.net/rust.shtml#term_gfx http://www.blitzcode.net/rust.shtml#term_gfx
https://github.com/blitzcode/term-gfx/blob/master/src/main.rs https://github.com/blitzcode/term-gfx/blob/master/src/main.r...
I think it could work great for your software.
- tombh 10y agoIs that similar to this do you think?https://github.com/jart/hiptext/blob/d50329e3b975ffac0209c0ade91120cec499918f/hiptext.cc#L134 https://github.com/jart/hiptext/blob/d50329e3b975ffac0209c0a... Where `kUpperHalfBlock = L'\u2580'` Because Hiptext is already supporting it, but when I enable the flag to support it, it crashes in Alpine, but not in my local env :/
- tombh 10y agoOMG, no, it's not the same, you go even further with 4 colours per char!! https://github.com/blitzcode/term-gfx/blob/master/src/main.rs#L59 https://github.com/blitzcode/term-gfx/blob/master/src/main.r...
- SirRockALot 10y agoYou still only get 2 colors (bg & fg), but you get to chose for each of the 4 sub-pixel, it's a bit like DXTC texture compression