blackears / svgSalamander

154 stars 56 forks source link

Implement rudimentary gaussian blur #82

Closed weisJ closed 3 years ago

weisJ commented 3 years ago

This implements a rudimentary gaussian blur filter.

Because filters like mask need to facilitate painting to an off-screen buffer, we extract the logic for this into a separate class outside of Mask. Then the size of the buffer is first adjusted to suit the installed filters. After applying the filters the mask is painted as usual. Notably this implementation currently doesn't support any filter specific attributes such as 'in', 'feOffset', 'feMergeMode' etc.

This implementation is capable of rendering the logo from #44, though it isn't particularly fast.

This PR includes the commit from #81, as it was necessary for the logo in #44 to load correctly.

blackears commented 3 years ago

Thanks for your contributions!