mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 06:55:17 +08:00
Merge pull request #344 from albertogasparin/pixelate-alpha-fix
Pixelate filter: correctly handle mixed alpha areas
This commit is contained in:
commit
831512f975
@ -80,6 +80,7 @@
|
||||
red = red / pixelsInBin;
|
||||
green = green / pixelsInBin;
|
||||
blue = blue / pixelsInBin;
|
||||
alpha = alpha / pixelsInBin;
|
||||
|
||||
// Draw this bin
|
||||
for (x = xBinStart; x < xBinEnd; x += 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user