nurpax / petmate

PETSCII editor with Electron/React/Redux
MIT License
185 stars 14 forks source link

mirror brushes #62

Closed Esshahn closed 6 years ago

Esshahn commented 6 years ago

(compare with Marq's tool). A brush should be able to be mirrored horizontally and vertically. I use that functionality quite often.

nurpax commented 6 years ago

Yes, this will be added. Marq has a “smart mirror” which also rewrites the chars to find pixel wise mirrored screencodes.

nurpax commented 6 years ago

Do you know if PETSCII does more than just bit exact reverse x/y matching for "smart flipping"?

I implemented it this way: https://gist.github.com/nurpax/103d675b532c3c8c9b6580900734160f and it works quite well for a lot of content, but not for everything.

nurpax commented 6 years ago

Mirroring done but rotate might not be too bad either. I noticed that it's handy if you're painting some box graphics. Also rotate+mirror current char is useful.

Esshahn commented 6 years ago

I'd suggest to close this one as the main task is completed.

nurpax commented 6 years ago

yes, if you have the time, file bugs for rotate and a separate issue for rotate/mirror currently selected char. the groundwork for doing the latter part is done.