PintaProject / Pinta

Simple GTK# Paint Program
http://www.pinta-project.com/
MIT License
1.74k stars 267 forks source link

Ported 'dents' effect from old version of Paint.NET #885

Closed Lehonti closed 1 week ago

Lehonti commented 1 week ago

Here is the code of the original effect: https://github.com/rivy/OpenPDN/blob/cca476b0df2a2f70996e6b9486ec45327631568c/src/Effects/DentsEffect.cs

The icon is from that old version of Paint.NET, too: https://github.com/rivy/OpenPDN/blob/cca476b0df2a2f70996e6b9486ec45327631568c/src/Resources/Icons/DentsEffectIcon.png

I also refactored the methods for Perlin noise calculations (used by CloudsEffect, too) into their own class.

Tests fail because WarpEffect depends on PintaCore being initialized, so I commented them out the tests. We could either:

cameronwhite commented 1 week ago

I think I'm good to keep the tests there but disabled for now until the PintaCore dependency can be fixed 👍