Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Painting with keyboard #22

Open
onemanstartup opened this issue Sep 30, 2019 · 8 comments
Open

Painting with keyboard #22

onemanstartup opened this issue Sep 30, 2019 · 8 comments
Labels
type:enhancement New feature or request

Comments

@onemanstartup
Copy link

It would be great if a user could control brush with keyboard, instead of frame. Maybe it could be done in modal fashion like vim. Right now it doesn't make sense to use hjkl when you need to use mouse at the same time.

Also it would be great if you could map specific keybindings for creating specific patterns, maybe through scripting language or just with libraries of images.

@cloudhead cloudhead added the type:enhancement New feature or request label Sep 30, 2019
@cloudhead
Copy link
Owner

I'm planning something similar to this with "visual" mode 👍

@zumpchke
Copy link

zumpchke commented Oct 4, 2019

Yes. This is exactly what I thought the tool was capable of.

This could be a game-changer. Let me know if you need testers/contributors.

@zumpchke
Copy link

Any update on this?

@cloudhead
Copy link
Owner

cloudhead commented Nov 27, 2019

Visual mode is now in master - try it out! You can fill the current selection with <space>, and move it with hjkl. The filling is based on the foreground color. If you have ideas on how to make this more powerful, I’m listening.

@onemanstartup
Copy link
Author

@cloudhead

  1. New preferences doesn't override old, so features absent if you don't update config.
  2. It would be great if you able to hold space in visual mode and continue to draw
  3. No number modificators make it hard to draw long lines. I have an idea so that visual mode start drawing from beginning, without typing , or maybe 3rd mode, like insert mode, because right now it's not powerful enough to drawing.

@aszlig
Copy link

aszlig commented Feb 28, 2020

Just stumbled on rx by accident and found that it's pretty close to what I wanted for quite a while, what's missing is just keyboard (and/or even controller) input without the need to reach for a pointing device.

If you have ideas on how to make this more powerful, I’m listening.

This is from a very early prototype for such an editor I wrote a few years ago:

vixel

So essentially the editor also had the goal of being Vi-like (named "vixel"), but with a keyboard-only focus. In the image above, drawing pixels is done by holding space (or some controller button) and the color selection is done by holding c while also using arrow-keys to quickly select the color.

What I had in mind there was optional controller support, so you select the color via shoulder button, pick a color and release the button or push another controller button to fold out the color into another "ring" of subcolors - all that while holding the shoulder button.

Now I'm not sure whether this is a sensible approach to this (after all it was a PoC), but it did allow to select colors more quickly than eg. by scrolling through the palette one-by-one.

Also, since rx so far used pointer-controlled drawing, I'm not quite sure whether implementing this in visual mode would make sense, since for example when working in Vi(m), I usually expect ESC to go into "normal" mode, but in rx this would mean that you're no longer able to select each pixel individually.

@cloudhead
Copy link
Owner

Hey @aszlig - thanks for the inspiration! Keyboard painting is not a super high priority right now, but I think your approach is interesting. I've actually been wanting to implement keyboard-based color selection regardless of whether you use the keyboard to paint, as I think it could be in many cases faster than moving your cursor to the palette and back.

@musjj
Copy link

musjj commented Apr 29, 2023

It would definitely be nice to see this. The current design feels odd, tbh.

Vim-like keybindings are simply a poor fit for the mouse/tablet + keyboard workflow model, because they were designed with the expectation that the user will have both of their hands on the keyboard at all times.

Most digital artists who work with this kind of setup usually cramp most of the keybinds all the way to the left (i.e. non-dominant hand) area of the keyboard. This way they don't have to release their mouse/pen just to reach a keybind.

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

No branches or pull requests

5 participants