mriale / PyDPainter

A usable pixel art paint program written in Python
GNU General Public License v3.0
549 stars 26 forks source link

Implement Animpainting #146

Closed mriale closed 2 months ago

mriale commented 2 months ago

Hold the Windows or Mac Meta key to advance animation frames while painting.

mriale commented 2 months ago

Animpainting works for all dot and line-based tools (except airbrush). It also automatically adjusts to the number of frames if you have the spacing option set to continuous.

To activate, hold down the Left-Windows key or the Left-Command key on the Mac before you drag out a line or draw with a tool. When you let go of the mouse button, the brush will be stamped on successive frames.

I'm not sure if this works like the DPaint III version because I can't get the Amiga key to work right on my laptop keyboard.

Sleuthgame commented 2 months ago

YES ! It works. It pop up the Windows menu at the end, but I'll check how to unactivate that. Please include my iff files: cherckerboard.iff redball.iff blueball.iff for future tutorials and explanations.

Sleuthgame commented 2 months ago

It works, but the windows menu is poping on at the very end. It's hard not to trigger it. I try to disable the Windows key with MS Powertoy, but it does disable on pydpainter too. Anyway, I just Escape the windows menu and that's all. I do record a video and will add to our teaser.

mriale commented 2 months ago

I added some code to grab the mouse and keyboard in full-screen mode, so this should trap the Windows key for animpainting. Doesn't do anything on Linux, though.

Sleuthgame commented 2 months ago

Creating bouncing balls with spacing is way too much fun now. 😄 bouncingred

Sleuthgame commented 2 months ago

It also automatically adjusts to the number of frames if you have the spacing option set to continuous.

It's very clever !

And having space settings working with animpainting is a game changer for rectangle, circle or any tools.

Sleuthgame commented 2 months ago

It's alive ! 🐛 🕷️

bugs