You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is simple; I would need a sub-cell mouse position in order to make it work sensibly. It would be strange and I imagine frustrating to be able to directly target only half of the pixels of an image, even if you could affect them indirectly with line/fill/brush tools. Pixel level mouse precision may be possible, however, as pointed out in issue #1 (comment)
I don't know how many terminals support this, or how it works with terminal zooming (changing pixels per cell).
For now, anyway, it keeps the project simpler just to treat character cells as character cells, and embrace aspect ratios as part of the terminal aesthetic.
You can add half blocks from the character palette, by double clicking the current color area, or paste in any Unicode characters you want (with varied results across terminals):
You can paste without creating a text box, in which case it will create a selection object (like a text box but not editable). If the text on the clipboard is too large, it will prompt to expand the document size.
If you use the Text tool, and create a text box, you can paste into it. If the text on the clipboard is too large, it will currently complain loudly, like good old MS Paint.
You can also paste into the current color/character area, which is an input, to draw with a given character, as an alternative to using the Color Picker tool.
Such an interesting project. Obvious do what you want, but using half blocks (▀) looks great in terminal (set fg and bg independently).
Example:
from arraypad/tui-image#3
The text was updated successfully, but these errors were encountered: