Skip to content

Commit

Permalink
anti-aliasing improvements on fill and magic wand tools
Browse files Browse the repository at this point in the history
  • Loading branch information
viliusle committed Jul 29, 2018
1 parent b7448b0 commit 2c73dd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/js/tools/fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ class Fill_class extends Base_tools_class {

ctxTemp.putImageData(img_tmp, 0, 0);
if (anti_aliasing == true) {
context.shadowColor = "rgba(" + color_to.r + ", " + color_to.g + ", "
+ color_to.b + ", " + color_to.a / 255 + ")";
context.shadowBlur = 5;
context.filter = 'blur(1px)';
}
context.drawImage(canvasTemp, 0, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/tools/magic_wand.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class Magic_wand_class extends Base_tools_class {
ctxTemp.putImageData(img_tmp, 0, 0);
context.globalCompositeOperation = "destination-out";
if (anti_aliasing == true) {
context.filter = 'blur(2px)';
context.filter = 'blur(1px)';
}
context.drawImage(canvasTemp, 0, 0);
}
Expand Down

0 comments on commit 2c73dd5

Please sign in to comment.