Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Use half blocks to keep pixel ration squared #6

Open
numaru opened this issue Jun 7, 2018 · 5 comments
Open

Use half blocks to keep pixel ration squared #6

numaru opened this issue Jun 7, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@numaru
Copy link

numaru commented Jun 7, 2018

There is a trick to keep the pixel ratio squared. The idea is to split a rectangular char into 2 pixels. To do so, Unicode lower half blocks u'\u2584' is used to draw the bottom pixel and the background color to draw the top one (or vice versa).

It is used in these projects:


Pros

  • Pixel squared
  • Can still draw a blinky cursor
  • Cool hacking solution 🐱‍💻

Cons

  • Might loose mouse support since this require to get which one of the 2 pixels has been clicked
  • Require Unicode 1.1.0 (June, 1993) support
@dylanaraps
Copy link
Owner

I like the idea, I’ll work on this.

@dylanaraps
Copy link
Owner

This will be difficult as we can't change the cursor shape, nor can we move the cursor in half blocks.

@numaru
Copy link
Author

numaru commented Jun 7, 2018

Yes it must be "faked" by drawing a blinky pixel. I was not sure if the idea could be implemented while keeping this project simple but I wanted to share the idea.

@dylanaraps dylanaraps added the enhancement New feature or request label Jun 8, 2018
@Amar1729
Copy link

If you had the write characters for it (top half, bottom half blocks) could you do this by having one key for drawing the top half and a different key for drawing the bottom half?

@u9000-Nine
Copy link

If you had the right characters

Unicode has U+2580 UPPER HALF BLOCK ▀ (and U+2584 LOWER HALF BLOCK ▄, but we only need one)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants