mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Resolve lint errors.
This commit is contained in:
parent
0f5501bc3b
commit
1f887c6704
@ -34,6 +34,11 @@
|
||||
};
|
||||
|
||||
ns.Outliner.prototype.replay = function (frame, replayData) {
|
||||
pskl.PixelUtils.outlineSimilarConnectedPixelsFromFrame(frame, replayData.col, replayData.row, replayData.color, replayData.fillCorners);
|
||||
pskl.PixelUtils.outlineSimilarConnectedPixelsFromFrame(
|
||||
frame,
|
||||
replayData.col,
|
||||
replayData.row,
|
||||
replayData.color,
|
||||
replayData.fillCorners);
|
||||
};
|
||||
})();
|
||||
|
@ -212,11 +212,14 @@
|
||||
};
|
||||
|
||||
var pixels = pskl.PixelUtils.getSimilarConnectedPixelsFromFrame(frame, col, row);
|
||||
pixels = pixels.filter(pixel => atLeastOneNeighborHasNonTargetColor(pixel));
|
||||
pixels = pixels.filter(function(pixel) {
|
||||
return atLeastOneNeighborHasNonTargetColor(pixel);
|
||||
});
|
||||
|
||||
var paintedPixels = [];
|
||||
|
||||
for (var pixel of pixels) {
|
||||
for (var i = 0; i < pixels.length; i++) {
|
||||
var pixel = pixels[i];
|
||||
frame.setPixel(pixel.col, pixel.row, replacementColor);
|
||||
paintedPixels.push(pixel);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user