atanunq / viuer

Rust library for displaying images in the terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for additional block characters

rosekunkel opened this issue · comments

There are a number of block characters in Unicode:

  • Half blocks (U+2580, U+2584):
    ▀ | ▃
  • Quadrants (U+2596..U+259f):
    ▖ | ▗ | ▘ | ▙ | ▚ | ▛ | ▜ | ▝ | ▞ | ▟
  • Sextants (U+1fb00..U+1fb3b):
    🬀 | 🬁 | 🬂 | 🬃 | 🬄 | 🬅 | 🬆 | 🬇 | 🬈 | 🬉 | 🬊 | 🬋 | 🬌 | 🬍 | 🬎 | 🬏
    🬐 | 🬑 | 🬒 | 🬓 | 🬔 | 🬕 | 🬖 | 🬗 | 🬘 | 🬙 | 🬚 | 🬛 | 🬜 | 🬝 | 🬞 | 🬟
    🬠 | 🬡 | 🬢 | 🬣 | 🬤 | 🬥 | 🬦 | 🬧 | 🬨 | 🬩 | 🬪 | 🬫 | 🬬 | 🬭 | 🬮 | 🬯
    🬰 | 🬱 | 🬲 | 🬳 | 🬴 | 🬵 | 🬶 | 🬷 | 🬸 | 🬹 | 🬺 | 🬻

Viuer currently only supports half blocks. It would be nice if it could also use quadrants and sextants to show images in higher resolution at the expense of color accuracy.

That would be really cool. Are you aware of some projects that already do that? The BlockPrinter will be in for quite the refactor...