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

[WIP] Add keys to mirror, flip and rotate a brush. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nboehm99
Copy link

@nboehm99 nboehm99 commented May 8, 2023

This is my initial attempt on adding key shortcuts to mirror, flip and rotate a brush selection in the editor.

They shortcuts used are CTRL-e, CTRL-d for horizontal and vertical mirroring, CTRL-f for flippping, and CTRL-r for rotating.

Known issues:

Since it's just manipulating the brush buffer at the moment there's some graphical issues.

  • The brush is visually updated only after moving the mouse
  • Flip/rotate on non-square brushes may cause some rendering artifacts that are only fixed when moving the mouse over the affected area

I guess it's necessary to re-draw the brush properly after changing it. Any help on how to achieve this is highly welcome ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant