mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
Pixelate filter: correctly handle mixed alpha areas
This commit is contained in:
parent
9a46ca6176
commit
05bd6bac38
@ -80,6 +80,7 @@
|
|||||||
red = red / pixelsInBin;
|
red = red / pixelsInBin;
|
||||||
green = green / pixelsInBin;
|
green = green / pixelsInBin;
|
||||||
blue = blue / pixelsInBin;
|
blue = blue / pixelsInBin;
|
||||||
|
alpha = alpha / pixelsInBin;
|
||||||
|
|
||||||
// Draw this bin
|
// Draw this bin
|
||||||
for (x = xBinStart; x < xBinEnd; x += 1) {
|
for (x = xBinStart; x < xBinEnd; x += 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user