mriale / PyDPainter

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

Smooth mode drawing as usual with background color #135

Closed Sleuthgame closed 3 months ago

Sleuthgame commented 3 months ago

change your background color to another color than black and clear screen (CLR)

image

Draw something. Hit F8. Smooth your drawing. Fine. Click the 0 color (black). It now draw as if black was the foreground color in Color Mode. Or as if black (0) still was the background color in Smooth Mode. Click any other color. Back to normal. Erase with new background color. Smooth draw with left click.

It has another behavior in dev version.

mriale commented 3 months ago

Thanks for finding this! I hadn't seen that before.

Issue #127 is the reason for the behavior in the last release that just draws with the background color instead of applying the brush mode.

With that issue fixed in develop, another problem showed up when drawing with the background color. It turns out that to draw with the background color, the transparent color of the brush ends up not being the same as the background color of the brush. I made it look at the transparent color of the brush instead of the background color and then it worked as expected.

Sleuthgame commented 3 months ago

I'm glad to see it fixed! Already ! I found it because I record some video tutorial.

Sleuthgame commented 3 months ago

It's ok now. We can close the ticket. :-)