steffest / DPaint-js

Webbased image editor, modeled after the legendary Deluxe Paint with a focus on retro Amiga file formats: read and write Amiga icon files and IFF ILBM images
https://www.stef.be/dpaint/
MIT License
481 stars 28 forks source link

Limit gradient to selection #8

Open mika76 opened 1 year ago

mika76 commented 1 year ago

I'm not sure if this is how the original worked, but logically I think the gradient should be limited to the selected area if one exists. Currently it ignores it and just draws the gradient on the whole layer.

steffest commented 1 year ago

Indeed it should. That's a result of my bad habit. I usually only use selections to cut/copy parts of layers.